From 41d40d6c18b6ffaf5132dbc67500214bc6d6d12b Mon Sep 17 00:00:00 2001 From: blueingreen68 Date: Mon, 25 Dec 2023 19:16:00 +0000 Subject: update install.sh --- library/cloneDotfiles.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 library/cloneDotfiles.sh (limited to 'library') diff --git a/library/cloneDotfiles.sh b/library/cloneDotfiles.sh new file mode 100755 index 0000000..c18712c --- /dev/null +++ b/library/cloneDotfiles.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +openKeepass () { + + wget https://yadi.sk/d/o4TMFnHFobxTsw -O "$dirArchIsoFiles"/Passwords.kdbx + + setStatusE true + + keepassxc-cli clip "$dirArchIsoFiles"/Passwords.kdbx github 0 -a token-cli + +} + +cloneDotfiles () { + + while : + do openKeepass + + if [ $? -eq 0 ]; then + setStatusE false + break + fi + + echo -e "Пароль скопирован!\n" + done + + cd + git clone https://blueingreen68@github.com/blueingreen68/.dotfiles + wl-copy -c + +} + +cloneDotfiles -- cgit