💥 fix(update_repo): not cleaning wallpapers dir

This commit is contained in:
João Dias
2024-11-19 17:45:00 -03:00
parent c0ef71d78b
commit fd703f1801
+4 -1
View File
@@ -55,6 +55,9 @@ Clean_local() {
fi fi
done done
Send_log "info" "Cleaning wallpapers..."
rm -rf ./wallpapers
echo "Done cleaning." echo "Done cleaning."
} }
@@ -69,7 +72,7 @@ Check_existance() {
Update_local() { Update_local() {
for dotsDir in ${HYPRLAND_DOTS_DIRS[@]}; do for dotsDir in ${HYPRLAND_DOTS_DIRS[@]}; do
if [[ -d "$HOME/.config/$dotsDir" ]]; then if [[ -d "$HOME/.config/$dotsDir" ]]; then
echo "-> Trying to copy ${dotsDir^}..." Send_log "info" "Trying to copy ${dotsDir^}..."
cp -r $HOME/.config/$dotsDir ./$dotsDir cp -r $HOME/.config/$dotsDir ./$dotsDir
else else
Send_log "warn" "Looks like the ~/.config/$dotsDir dir is in fault! Skipping it..." Send_log "warn" "Looks like the ~/.config/$dotsDir dir is in fault! Skipping it..."