aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar blueingreen68 <blueingreen68@gmail.com>2024-02-07 16:20:10 +0500
committerLibravatar blueingreen68 <blueingreen68@gmail.com>2024-02-07 16:20:10 +0500
commit5f0591566ae3677701b47968d0843f714cb32d76 (patch)
tree273ef82e76aa8e43246b2c5a9d9cdae0701e6d26
parent1937eaa5fc1f6ead6f46a3b4363c73eb6a525e0d (diff)
update cloneDotfiles.sh
-rwxr-xr-xcloneDotfiles.sh13
1 files changed, 5 insertions, 8 deletions
diff --git a/cloneDotfiles.sh b/cloneDotfiles.sh
index a1fbf6e..4ff7fb4 100755
--- a/cloneDotfiles.sh
+++ b/cloneDotfiles.sh
@@ -11,7 +11,7 @@ setStatusE () {
setStatusE false
getKdbxFile () {
- read -r passwordFileLink < <(yadisk-direct https://yadi.sk/d/o4TMFnHFobxTsw)
+ read -r passwordFileLink < <("$HOME/.local/bin/yadisk-direct" https://yadi.sk/d/o4TMFnHFobxTsw)
wget "$passwordFileLink" -O ~/Passwords.kdbx
}
@@ -22,15 +22,12 @@ openKeepass () {
keepassxc-cli clip ~/Passwords.kdbx github 0 -a token-cli
}
-cat << EOF
-Before start ./cloneDotfiles.sh:
-
pipx install wldhx.yadisk-direct
-pipx ensurepath
-source .bashrc
-and launch ./cloneDotfiles.sh in new foot window
-EOF
+if [ "$?" -eq 1 ]; then
+ echo "Ошибка установки wldhx.yadisk-direct... Выход"
+ exit 1
+fi
getKdbxFile