summaryrefslogtreecommitdiffstats
path: root/set-background.sh
diff options
context:
space:
mode:
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