File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,16 @@ if [ -z "${API_PORT}" ]; then
28
28
exit 1
29
29
fi
30
30
31
- api_versions=($( curl http://127.0.0.1:$API_PORT /api/ | sed -e ' s/\[//g' -e ' s/\]//g' -e ' s/\,/ /g' ) )
31
+ api_versions=($( curl -s http://127.0.0.1:$API_PORT /api/ | sed -e ' s/\[//g' -e ' s/\]//g' -e ' s/\,/ /g' ) )
32
32
API_VERSION=${api_versions[-1]}
33
33
echo " API_VERSION: $API_VERSION "
34
34
35
35
echo " **** /api/$API_VERSION /nginx ****" ;
36
- curl -s " 127.0.0.1:$API_PORT /api/$API_VERSION /nginx" | jq . ;
36
+ curl -s " 127.0.0.1:$API_PORT /api/$API_VERSION /nginx" | jq -r ' . ' ;
37
37
echo " " ;
38
38
39
39
for i in /api/$API_VERSION /processes /api/$API_VERSION /connections /api/$API_VERSION /slabs /api/$API_VERSION /http/requests /api/$API_VERSION /http/server_zones /api/$API_VERSION /http/location_zones /api/$API_VERSION /http/caches /api/$API_VERSION /http/upstreams /api/$API_VERSION /http/keyvals; do
40
40
echo " **** $i ****" ;
41
- curl -s " 127.0.0.1:$API_PORT /$i " | jq . ;
41
+ curl -s " 127.0.0.1:$API_PORT /$i " | jq -r ' . ' ;
42
42
echo " " ;
43
43
done
You can’t perform that action at this time.
0 commit comments