diff options
Diffstat (limited to 'library/cloneDotfiles.sh')
| -rwxr-xr-x | library/cloneDotfiles.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/library/cloneDotfiles.sh b/library/cloneDotfiles.sh new file mode 100755 index 0000000..c18712c --- /dev/null +++ b/library/cloneDotfiles.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +openKeepass () { + + wget https://yadi.sk/d/o4TMFnHFobxTsw -O "$dirArchIsoFiles"/Passwords.kdbx + + 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 |
