mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
clean up some unnecessary code in swaybg.sh
This commit is contained in:
parent
381f0e87cb
commit
dc99f63cdd
@ -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; }
|
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $SWAYBG install had failed, please check the install.log"; exit 1; }
|
||||||
done
|
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
|
clear
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user