From 6a81404547cebf7ac7c67e598d759cc5755b582d Mon Sep 17 00:00:00 2001 From: Arkaprabha Chakraborty Date: Sat, 9 Dec 2023 20:21:28 +0530 Subject: [PATCH] Fix bug: path variable not surrounded by quotes treated as two arguments --- sbg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbg b/sbg index 6e713da..431c188 100755 --- a/sbg +++ b/sbg @@ -14,6 +14,6 @@ FLAGS=--bg-fill # program flags WALL=$1 # original image REST=$HOME/.bg # duplicate image -cp $WALL $REST # make a copy -$PROG $FLAGS $REST # set background -$NOTIPROG "Set as background" -a $PROG -u "low" -t "2000" -I $WALL +cp "$WALL" "$REST" # make a copy +"$PROG" "$FLAGS" "$REST" # set background +"$NOTIPROG" "Set as background" -a "$PROG" -u "low" -t "2000" -I "$WALL"