aboutsummaryrefslogtreecommitdiff
path: root/library/cloneDotfiles.sh
diff options
context:
space:
mode:
authorLibravatar blueingreen68 <blueingreen68@gmail.com>2023-12-28 18:40:51 +0500
committerLibravatar blueingreen68 <blueingreen68@gmail.com>2023-12-28 18:40:51 +0500
commit13eb5f3cfb004e5910c8e007bf1e23333c846e4e (patch)
tree48c50decc561cd3c675338eba0817ca3402c84ff /library/cloneDotfiles.sh
parent05b8c6f68cb99ef215fd7b4cf362fe9f7be09e38 (diff)
update files
Diffstat (limited to 'library/cloneDotfiles.sh')
-rwxr-xr-xlibrary/cloneDotfiles.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/library/cloneDotfiles.sh b/library/cloneDotfiles.sh
index 2268498..36c30fc 100755
--- a/library/cloneDotfiles.sh
+++ b/library/cloneDotfiles.sh
@@ -1,9 +1,12 @@
#!/bin/bash
-wget https://yadi.sk/d/o4TMFnHFobxTsw -O "$dirArchIsoFiles"/Passwords.html
+getKdbxFile () {
+ read -r passwordFile < <(yadisk-direct https://yadi.sk/d/o4TMFnHFobxTsw)
-openKeepass () {
+ wget "$passwordFile" -O $HOME/"$dirArchIsoFiles"/Passwords.kbdx
+}
+openKeepass () {
setStatusE true
keepassxc-cli clip "$dirArchIsoFiles"/Passwords.kdbx github 0 -a token-cli
@@ -11,14 +14,14 @@ openKeepass () {
cloneDotfiles () {
while :
- do openKeepass
+ do
+ openKeepass
if [ $? -eq 0 ]; then
setStatusE false
echo -e "Пароль скопирован!\n"
break
fi
-
done
cd
@@ -26,4 +29,5 @@ cloneDotfiles () {
wl-copy -c
}
+source $HOME/"$dirArchIsoFiles"/setupPkgPipx.sh
cloneDotfiles