Change the loop for sh.

This commit is contained in:
Martin Kammerlander 2019-12-12 16:23:42 +01:00
parent 953a9b1768
commit 3ccac629bc

View File

@ -76,9 +76,7 @@ dns_kas_rm() {
params="$params&kas_auth_data=$KAS_Authdata" params="$params&kas_auth_data=$KAS_Authdata"
params="$params&kas_action=delete_dns_settings" params="$params&kas_action=delete_dns_settings"
# split it into a seperated list, if there where multiples entries made for i in $_record_id; do
records=($_record_id)
for i in "${records[@]}"; do
params2="$params&var1=record_id" params2="$params&var1=record_id"
params2="$params2&wert1=$i" params2="$params2&wert1=$i"
_debug2 "Wait for 10 seconds by default before calling KAS API." _debug2 "Wait for 10 seconds by default before calling KAS API."