diff options
| author | 2025-08-14 15:12:11 +0500 | |
|---|---|---|
| committer | 2025-08-14 15:12:11 +0500 | |
| commit | 87696c179023dfc364d16f605a78bbbf8722518a (patch) | |
| tree | 2a0793f11d6fefa5c211becd683d96de5d93d3de | |
| parent | cba4697b1da3dc9452481487104ed180d2368f5a (diff) | |
remove clone-dotfiles.sh
| -rwxr-xr-x | bin/clone-dotfiles.sh | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/bin/clone-dotfiles.sh b/bin/clone-dotfiles.sh deleted file mode 100755 index ba652d8..0000000 --- a/bin/clone-dotfiles.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -declare -g httpsToken - -function setStatusE() { - if [[ "$1" = "on" ]]; then - set -e - else - set +e - fi -} - -setStatusE "on" - -function getKdbxFile() { - read -r passwordFileLink < <("$HOME/.local/bin/yadisk-direct" https://yadi.sk/d/o4TMFnHFobxTsw) - - wget "$passwordFileLink" -O "$HOME/Passwords.kdbx" -} - -function openKeepass() { - setStatusE "off" - - httpsToken=$(keepassxc-cli show --attributes https-token "$HOME/Passwords.kdbx" soft-serve) - return 0 -} - -pipx install wldhx.yadisk-direct - -if [[ "$?" -eq 1 ]]; then - echo "Ошибка установки wldhx.yadisk-direct... Выход" - exit 1 -fi - -getKdbxFile - -while :; do - if openKeepass; then - setStatusE "on" - break - fi -done - -cd -git clone https://"$httpsToken"@ss.bluig.xyz/.init.git "$HOME/init" -unset httpsToken |
