✨ feat(update-repo.sh): add wallpapers to copying
This commit is contained in:
+7
-1
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
HYPRLAND_DOTS_DIRS=("hypr" "swaync" "waybar" "anyrun" "wlogout" "wal")
|
HYPRLAND_DOTS_DIRS=("hypr" "swaync" "waybar" "anyrun" "wlogout" "wal")
|
||||||
|
WALLPAPERS_DIR="$HOME/wallpapers"
|
||||||
|
|
||||||
printf "\n"
|
printf "\n"
|
||||||
|
|
||||||
@@ -67,13 +68,18 @@ 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
|
||||||
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..."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ -d "$WALLPAPERS_DIR" ]]; then
|
||||||
|
Send_log "info" "Copying wallpapers"
|
||||||
|
cp -r $WALLPAPERS_DIR ./wallpapers/
|
||||||
|
fi
|
||||||
|
|
||||||
printf "\nDone updating local repo!\n"
|
printf "\nDone updating local repo!\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user