1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

bbox: quoting the variables

This commit is contained in:
Steve Schnepp 2019-07-18 22:44:49 +02:00
parent 93f4ff09a9
commit af28042128

View file

@ -87,15 +87,15 @@ then
exit 0 exit 0
fi fi
TMPFILE=$(mktemp -d) TMPFILE="$(mktemp -d)"
trap 'rm -Rf $TMPFILE' EXIT 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" > "ip.json" &
curl -s http://$IP/api/v1/wan/ip/stats > "ip-stats.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" > "xdsl.json" &
curl -s http://$IP/api/v1/wan/xdsl/stats > "xdsl-stats.json" & curl -s "http://$IP/api/v1/wan/xdsl/stats" > "xdsl-stats.json" &
wait wait