Browse Source

Fix Bash 4.0 compatibility

test-fixes v0.5.0
Silke 9 months ago
parent
commit
c517063ab1
  1. 2
      pdns_api.sh

2
pdns_api.sh

@ -297,7 +297,7 @@ get_records() {
IFS=" " read -ra tokens <<< "${token}"
for i in "${!tokens[@]}"; do
printf '%.*s' $((i != 0)) ","
[[ $i -ne 0 ]] && echo -n ","
echo -n '{
"content": "\"'"${tokens[$i]}"'\"",

Loading…
Cancel
Save