Fix bug: path variable not surrounded by quotes treated as two arguments

This commit is contained in:
2023-12-09 20:21:28 +05:30
parent 3018a07795
commit 6a81404547

6
sbg
View File

@@ -14,6 +14,6 @@ FLAGS=--bg-fill # program flags
WALL=$1 # original image WALL=$1 # original image
REST=$HOME/.bg # duplicate image REST=$HOME/.bg # duplicate image
cp $WALL $REST # make a copy cp "$WALL" "$REST" # make a copy
$PROG $FLAGS $REST # set background "$PROG" "$FLAGS" "$REST" # set background
$NOTIPROG "Set as background" -a $PROG -u "low" -t "2000" -I $WALL "$NOTIPROG" "Set as background" -a "$PROG" -u "low" -t "2000" -I "$WALL"