diff options
| author | 2023-12-21 11:18:00 +0500 | |
|---|---|---|
| committer | 2023-12-21 11:18:00 +0500 | |
| commit | 53ebc97c5ef0b8de2f26d310f4ea756013f49d52 (patch) | |
| tree | 17fd57fec96ab5ee2591992914f1a90c23ba83ce | |
| parent | d8675dd83b3fc73dc6d77f5c98421f0d10659534 (diff) | |
update install.sh
| -rwxr-xr-x | install.sh | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -1,7 +1,9 @@ #!/bin/bash + dirArchIsoFiles=~/archisofiles dotfiles=~/.dotfiles counterAbortedPkg=0 + setStatusE () { if [ "$1" = true ]; then set +e @@ -23,12 +25,24 @@ yaySetupPkg () { } openKeepass () { + setStatusE true + entryKey=$(keepassxc-cli show "$dirArchIsoFiles"/Passwords.kdbx github) } cloneDotfiles () { # Сделать повторный ввод пароля - if [] + while : + do + openKeepass + + if [ $? -eq 0 ]; then + setStatusE false + break + fi + + done + notesKey=$(echo "$entryKey" | grep "Notes:") echo "$notesKey" | awk '{ print $2 }' | wl-copy @@ -102,9 +116,6 @@ stowUpdateNoFoldingPkg () { } swaySetup () { - mkdir -p ~/.config/sway - cp /etc/sway/config ~/.config/sway/ - echo "[ "$(tty)" = "/dev/tty1" ] && exec sway" >> .bash_profile } @@ -114,6 +125,7 @@ startSetup () { Yay) yaySetupPkg swaySetup + break ;; @@ -125,7 +137,7 @@ startSetup () { break ;; - StowUpdate) + StowUpdateNoFolding) stowUpdateNoFoldingPkg break |
