From af28042128e5cbb3f76e2d8a3f54df7c6df6b31a Mon Sep 17 00:00:00 2001 From: Steve Schnepp Date: Thu, 18 Jul 2019 22:44:49 +0200 Subject: [PATCH] bbox: quoting the variables --- plugins/router/bbox | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/router/bbox b/plugins/router/bbox index 8f2ee9f7..64b4a792 100644 --- a/plugins/router/bbox +++ b/plugins/router/bbox @@ -87,15 +87,15 @@ then exit 0 fi -TMPFILE=$(mktemp -d) -trap 'rm -Rf $TMPFILE' EXIT +TMPFILE="$(mktemp -d)" +trap 'rm -Rf "$TMPFILE"' EXIT -cd $TMPFILE +cd "$TMPFILE" -curl -s http://$IP/api/v1/wan/ip > "ip.json" & -curl -s http://$IP/api/v1/wan/ip/stats > "ip-stats.json" & -curl -s http://$IP/api/v1/wan/xdsl > "xdsl.json" & -curl -s http://$IP/api/v1/wan/xdsl/stats > "xdsl-stats.json" & +curl -s "http://$IP/api/v1/wan/ip" > "ip.json" & +curl -s "http://$IP/api/v1/wan/ip/stats" > "ip-stats.json" & +curl -s "http://$IP/api/v1/wan/xdsl" > "xdsl.json" & +curl -s "http://$IP/api/v1/wan/xdsl/stats" > "xdsl-stats.json" & wait