Skip to content

Commit e24e310

Browse files
committed
switched to using wildcard for file list -- spaces are handled properly after all
1 parent df8db38 commit e24e310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awesome-background-changer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ done
4242
cd $WALLPAPER_DIR
4343
# Main loop
4444
while sleep ${delay:-0}; do
45-
wallpapers=( $(ls | sed 's/ /\\ /g') )
45+
wallpapers=( * )
4646
while [[ $choice == $last ]]; do
4747
index=$(( RANDOM % ${#wallpapers[@]} ))
4848
choice=${wallpapers[$index]}

0 commit comments

Comments
 (0)