diff options
author | Florian Pritz <f-p@gmx.at> | 2009-07-03 16:08:44 +0200 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-07-03 16:08:44 +0200 |
commit | c5ea973f2a31f6caa68c83a84d2215173d555d05 (patch) | |
tree | 148bbe2882a1fa566f1d013718cbddca6d65d81f /set-background.sh | |
parent | eed9199f7b00cb6269cf063aa11084cdd7b3a904 (diff) | |
download | bin-c5ea973f2a31f6caa68c83a84d2215173d555d05.tar.gz bin-c5ea973f2a31f6caa68c83a84d2215173d555d05.tar.xz |
escape image name
Diffstat (limited to 'set-background.sh')
-rwxr-xr-x | set-background.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |