From dc99f63cdd0d25b53406f0fd18316a7330b9a010 Mon Sep 17 00:00:00 2001 From: GavinL2001 Date: Sun, 4 Feb 2024 19:33:24 -0600 Subject: [PATCH] clean up some unnecessary code in swaybg.sh --- install-scripts/swaybg.sh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/install-scripts/swaybg.sh b/install-scripts/swaybg.sh index 02161c8..63bba37 100755 --- a/install-scripts/swaybg.sh +++ b/install-scripts/swaybg.sh @@ -30,15 +30,4 @@ printf "${NOTE} Installing swaybg\n" [ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $SWAYBG install had failed, please check the install.log"; exit 1; } done - # Check for existing configs and copy if does not exist -for DIR1 in swaybg; do - DIRPATH=~/.config/$DIR1 - if [ -d "$DIRPATH" ]; then - echo -e "${NOTE} Config for $DIR1 found, no need to copy." 2>&1 | tee -a "$LOG" - else - echo -e "${NOTE} Config for $DIR1 not found, copying from assets." 2>&1 | tee -a "$LOG" - cp -r assets/$DIR1 ~/.config/ && echo "Copy $DIR1 completed!" || echo "Error: Failed to copy $DIR1 config files." 2>&1 | tee -a "$LOG" - fi -done - clear