From e766e65d05b2826cbbf6ebd7c24bbde9e5c966ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Dias?= Date: Mon, 23 Sep 2024 13:58:31 -0300 Subject: [PATCH] :sparkles: feat(update-repo.sh): add wallpapers to copying --- update-repo.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/update-repo.sh b/update-repo.sh index bc08f9c..81e0362 100644 --- a/update-repo.sh +++ b/update-repo.sh @@ -1,6 +1,7 @@ #!/usr/bin/bash HYPRLAND_DOTS_DIRS=("hypr" "swaync" "waybar" "anyrun" "wlogout" "wal") +WALLPAPERS_DIR="$HOME/wallpapers" printf "\n" @@ -67,13 +68,18 @@ Check_existance() { Update_local() { 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 else Send_log "warn" "Looks like the ~/.config/$dotsDir dir is in fault! Skipping it..." fi done + if [[ -d "$WALLPAPERS_DIR" ]]; then + Send_log "info" "Copying wallpapers" + cp -r $WALLPAPERS_DIR ./wallpapers/ + fi + printf "\nDone updating local repo!\n" }