diff options
| author | 2025-02-14 10:16:52 +0000 | |
|---|---|---|
| committer | 2025-02-14 10:16:52 +0000 | |
| commit | 6efca1addcddec3edd45f03f774586711cb3b54c (patch) | |
| tree | f06171ea2dd4aa29eb6f79a0b19c784c100d1d95 /cloneDotfiles.sh | |
| parent | 3e8ac2f7bc363cbd697d5aa342103962da91299b (diff) | |
update clone-dotfiles.sh
Diffstat (limited to 'cloneDotfiles.sh')
| -rwxr-xr-x | cloneDotfiles.sh | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/cloneDotfiles.sh b/cloneDotfiles.sh deleted file mode 100755 index fcccb33..0000000 --- a/cloneDotfiles.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -function setStatusE() { - if [[ "$1" = true ]]; then - set +e - else - set -e - fi -} - -setStatusE false - -function getKdbxFile() { - read -r passwordFileLink < <("$HOME/.local/bin/yadisk-direct" https://yadi.sk/d/o4TMFnHFobxTsw) - - wget "$passwordFileLink" -O ~/Passwords.kdbx -} - -function openKeepass() { - setStatusE true - - keepassxc-cli clip ~/Passwords.kdbx Github 0 -a token-cli -} - -pipx install wldhx.yadisk-direct - -if [[ "$?" -eq 1 ]]; then - echo "Ошибка установки wldhx.yadisk-direct... Выход" - exit 1 -fi - -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 "$HOME"/.dotfiles -wl-copy -c |
