diff options
| author | 2024-01-22 13:33:26 +0500 | |
|---|---|---|
| committer | 2024-01-22 13:33:26 +0500 | |
| commit | a4a700c8a424f2e2467517096182a3a3aaa9b43c (patch) | |
| tree | 1034913d586d589c2f9fb6a837473254660f7007 /ARCHIVED/library/cloneDotfiles.sh | |
| parent | 94aa4680567708b8c0c555a728552b1d8c7bd57a (diff) | |
unarchived
Diffstat (limited to 'ARCHIVED/library/cloneDotfiles.sh')
| -rwxr-xr-x | ARCHIVED/library/cloneDotfiles.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ARCHIVED/library/cloneDotfiles.sh b/ARCHIVED/library/cloneDotfiles.sh new file mode 100755 index 0000000..2589c58 --- /dev/null +++ b/ARCHIVED/library/cloneDotfiles.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +getKdbxFile () { + read -r passwordFileLink < <(yadisk-direct https://yadi.sk/d/o4TMFnHFobxTsw) + + wget "$passwordFileLink" -O "$dirArchIsoFiles"/Passwords.kdbx +} + +openKeepass () { + setStatusE true + + keepassxc-cli clip "$dirArchIsoFiles"/Passwords.kdbx github 0 -a token-cli +} + +cloneDotfiles () { + getKdbxFile + + while : + do + openKeepass + + if [ $? -eq 0 ]; then + setStatusE false + echo -e "Пароль скопирован!\n" + break + fi + done + + cd + git clone https://blueingreen68@github.com/blueingreen68/.dotfiles + wl-copy -c +} + +cloneDotfiles |
