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