From c5ea973f2a31f6caa68c83a84d2215173d555d05 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 3 Jul 2009 16:08:44 +0200 Subject: escape image name --- set-background.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'set-background.sh') diff --git a/set-background.sh b/set-background.sh index 85557dd..780b0de 100755 --- a/set-background.sh +++ b/set-background.sh @@ -25,8 +25,8 @@ cd "$(dirname "$1")" FILE="$(pwd)/$(basename "$1")" -if [ -f $FILE ]; then - echo "feh --bg-center ${FILE}" > "$HOME/.fehbg"; +if [ -f "$FILE" ]; then + echo "feh --bg-center '${FILE}'" > "$HOME/.fehbg"; rm "$HOME/backgrounds/current_bg"; ln -sf "${FILE}" "$HOME/backgrounds/current_bg"; source $HOME/.fehbg -- cgit v1.2.3-24-g4f1b