aboutsummaryrefslogtreecommitdiff
path: root/library/cloneDotfiles.sh
blob: c623a7653f684207b1059d28740fad403d402ea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash 

wget https://yadi.sk/d/o4TMFnHFobxTsw -O "$dirArchIsoFiles"/Passwords.kdbx

openKeepass () {

  setStatusE true

  keepassxc-cli clip "$dirArchIsoFiles"/Passwords.kdbx github 0 -a token-cli
}

cloneDotfiles () {
  while :
  do openKeepass
    
	  if [ $? -eq 0 ]; then
      setStatusE false
      break
	  fi

  echo -e "Пароль скопирован!\n"
  done

  cd
  git clone https://blueingreen68@github.com/blueingreen68/.dotfiles
  wl-copy -c
}

cloneDotfiles