fix issue with multiple spaces in filename in fbsetbg

This commit is contained in:
Mark Tiefenbruck 2008-01-23 03:45:59 -08:00
parent 97c5f12615
commit f1fd7f464b

View file

@ -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
}