From f1fd7f464bb68dc6f846b1a8c9213f4a2f8c22d8 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Wed, 23 Jan 2008 03:45:59 -0800 Subject: fix issue with multiple spaces in filename in fbsetbg --- util/fbsetbg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/fbsetbg b/util/fbsetbg index 64c8728..0f38d4c 100644 --- a/util/fbsetbg +++ b/util/fbsetbg @@ -155,14 +155,14 @@ remembercommand() { grep -vs "|${DISPLAY}$" ${lastwallpaper} > ${lastwallpaper}.tmp mv -f ${lastwallpaper}.tmp ${lastwallpaper} if [ "$option" = fbsetroot ]; then - echo $option'|'$wallpaper'|'$DISPLAY >> $lastwallpaper + echo $option"|$wallpaper|"$DISPLAY >> $lastwallpaper return fi # Make dir/../../path/file.jpg work case $wallpaper in # no spaces allowed between the varname and '|' - /*) echo $option $option2'|'$wallpaper'|'$DISPLAY >> $lastwallpaper ;; - *) echo $option $option2'|'$PWD/$wallpaper'|'$DISPLAY >> $lastwallpaper ;; + /*) echo $option $option2"|$wallpaper|"$DISPLAY >> $lastwallpaper ;; + *) echo $option $option2"|$PWD/$wallpaper|"$DISPLAY >> $lastwallpaper ;; esac } -- cgit v0.11.2