aboutsummaryrefslogtreecommitdiff
path: root/ARCHIVED/library/cloneDotfiles.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ARCHIVED/library/cloneDotfiles.sh')
-rwxr-xr-xARCHIVED/library/cloneDotfiles.sh34
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