summaryrefslogtreecommitdiffstats
path: root/set-background.sh
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-07-03 16:08:44 +0200
committerFlorian Pritz <f-p@gmx.at>2009-07-03 16:08:44 +0200
commitc5ea973f2a31f6caa68c83a84d2215173d555d05 (patch)
tree148bbe2882a1fa566f1d013718cbddca6d65d81f /set-background.sh
parenteed9199f7b00cb6269cf063aa11084cdd7b3a904 (diff)
downloadbin-c5ea973f2a31f6caa68c83a84d2215173d555d05.tar.gz
bin-c5ea973f2a31f6caa68c83a84d2215173d555d05.tar.xz
escape image name
Diffstat (limited to 'set-background.sh')
-rwxr-xr-xset-background.sh4
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