aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar blueingreen68 <blueingreen68@gmail.com>2023-12-21 11:18:00 +0500
committerLibravatar blueingreen68 <blueingreen68@gmail.com>2023-12-21 11:18:00 +0500
commit53ebc97c5ef0b8de2f26d310f4ea756013f49d52 (patch)
tree17fd57fec96ab5ee2591992914f1a90c23ba83ce
parentd8675dd83b3fc73dc6d77f5c98421f0d10659534 (diff)
update install.sh
-rwxr-xr-xinstall.sh22
1 files changed, 17 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index 49adc2c..0a724eb 100755
--- a/install.sh
+++ b/install.sh
@@ -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