fixed a little bug in fbsetbg when DISPLAY doesn't have .0 after it
markt markt
2 files changed,
4 insertions(+),
0 deletions(-)
M
util/fbsetbg
→
util/fbsetbg
@@ -298,6 +298,8 @@ option=`echo $option|cut -d' ' -f1`
wallpaper=`grep "|${DISPLAY}$" $lastwallpaper|cut -d'|' -f2` if [ -z "$wallpaper" ]; then option=`grep "|${DISPLAY}.0$" $lastwallpaper|cut -d'|' -f1` + option2=`echo $option|cut -d' ' -f2` + option=`echo $option|cut -d' ' -f1` wallpaper=`grep "|${DISPLAY}.0$" $lastwallpaper|cut -d'|' -f2` fi if [ -z "$wallpaper" ]; then