Skip to content

Commit

Permalink
Fix Bash 4.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
silkeh committed Sep 16, 2020
1 parent 6b06035 commit c517063
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns_api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]}"'\"",
Expand Down

0 comments on commit c517063

Please sign in to comment.