ddns-scripts: variable quoting

in case spaces should creep into path names

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2024-11-30 19:16:11 +01:00
committed by Florian Eckert
parent 6b9b6fdace
commit 6706a5bd78

View File

@@ -147,19 +147,19 @@ case "$1" in
;;
start)
[ -z "$SECTION" ] && usage_err "command 'start': 'SECTION' not set"
if [ $VERBOSE -eq 0 ]; then # start in background
$DDNSPRG -v 0 -S $SECTION -- start &
if [ "$VERBOSE" -eq 0 ]; then # start in background
"$DDNSPRG" -v 0 -S "$SECTION" -- start &
else
$DDNSPRG -v $VERBOSE -S $SECTION -- start
"$DDNSPRG" -v "$VERBOSE" -S "$SECTION" -- start
fi
;;
reload)
$DDNSPRG -- reload
"$DDNSPRG" -- reload
;;
restart)
$DDNSPRG -- stop
"$DDNSPRG" -- stop
sleep 1
$DDNSPRG -- start
"$DDNSPRG" -- start
;;
*)
__RET=255
@@ -167,6 +167,6 @@ case "$1" in
esac
# remove out and err file
[ -f $DATFILE ] && rm -f $DATFILE
[ -f $ERRFILE ] && rm -f $ERRFILE
[ -f "$DATFILE" ] && rm -f "$DATFILE"
[ -f "$ERRFILE" ] && rm -f "$ERRFILE"
return $__RET