Skip to content

Commit 4350d7f

Browse files
committed
Fix: Copy sources_example to sources directory in update_configs function
1 parent bcbe596 commit 4350d7f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Setup/Start_hyprland_setup.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,16 @@ check_user_input() {
103103

104104
# Function to update configuration files with user input
105105
update_configs() {
106+
# Copy sources_example to sources directory
107+
local hypr_config_dir="$HOME/dotfiles/.config/hypr"
108+
if [ -d "$hypr_config_dir/sources_example" ]; then
109+
print_message "Copying sources_example to sources..."
110+
cp -r "$hypr_config_dir/sources_example" "$hypr_config_dir/sources"
111+
else
112+
print_error "sources_example directory not found in $hypr_config_dir"
113+
mkdir -p "$hypr_config_dir/sources"
114+
fi
115+
106116
# Update the wallpaper configuration file
107117
local wallpaper_conf="$HOME/dotfiles/.config/hypr/sources/change_wallpaper.conf"
108118
mkdir -p "$(dirname "$wallpaper_conf")"

0 commit comments

Comments
 (0)