💥 fix(apply.sh): script installs dotfiles in duplicated dirs

This commit is contained in:
João Dias
2024-09-23 14:01:51 -03:00
parent e766e65d05
commit 2c7e5ce017
+3 -4
View File
@@ -61,7 +61,7 @@ function Backup_previous_dotfiles {
fi fi
} }
function Apply_wallpaper { function Apply_wallpapers {
echo -n "Would you also like to apply the wallpapers folder? :3 [y/n] " echo -n "Would you also like to apply the wallpapers folder? :3 [y/n] "
read input_wallpaper read input_wallpaper
@@ -91,12 +91,11 @@ function Apply_dotfiles {
for dir in ${DOTFILES_DIRS[@]}; do for dir in ${DOTFILES_DIRS[@]}; do
echo "-> Installing $dir in $CONFIG_DIR/$dir" echo "-> Installing $dir in $CONFIG_DIR/$dir"
mkdir -p $CONFIG_DIR/$dir
cp -rf ./$dir $CONFIG_DIR/$dir cp -rf ./$dir $CONFIG_DIR/$dir
done done
# Ask if user wants to apply repo's default wallpaper # Ask if user wants to apply repo's wallpapers dir
Apply_wallpaper Apply_wallpapers
echo "Ah yes! Looks like it's ready to use, yay :3" echo "Ah yes! Looks like it's ready to use, yay :3"
echo "If you find any issue, please report at: https://github.com/retrozinndev/Hyprland-Dots/issues" echo "If you find any issue, please report at: https://github.com/retrozinndev/Hyprland-Dots/issues"