Browse Source
replaced increment/decrement with _math function
pull/1605/head
linux-insideDE
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
dnsapi/dns_netcup.sh
|
@ -36,7 +36,7 @@ dns_netcup_add() { |
|
|
break; |
|
|
break; |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
i=$((i - 1)) |
|
|
|
|
|
|
|
|
i=$(_math "$i" - 1) |
|
|
done |
|
|
done |
|
|
inc="" |
|
|
inc="" |
|
|
i=1 |
|
|
i=1 |
|
@ -52,7 +52,7 @@ dns_netcup_add() { |
|
|
inc="$inc$i," |
|
|
inc="$inc$i," |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
i=$((i + 1)) |
|
|
|
|
|
|
|
|
i=$(_math "$i" + 1) |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
tmp=$(echo "$fulldomain" | cut -d'.' -f$inc) |
|
|
tmp=$(echo "$fulldomain" | cut -d'.' -f$inc) |
|
@ -85,7 +85,7 @@ dns_netcup_rm() { |
|
|
break; |
|
|
break; |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
i=$((i - 1)) |
|
|
|
|
|
|
|
|
i=$(_math "$i" - 1) |
|
|
done |
|
|
done |
|
|
inc="" |
|
|
inc="" |
|
|
i=1 |
|
|
i=1 |
|
@ -101,7 +101,7 @@ dns_netcup_rm() { |
|
|
inc="$inc$i," |
|
|
inc="$inc$i," |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
i=$((i + 1)) |
|
|
|
|
|
|
|
|
i=$(_math "$i" + 1) |
|
|
done |
|
|
done |
|
|
tmp=$(echo "$fulldomain" | cut -d'.' -f$inc) |
|
|
tmp=$(echo "$fulldomain" | cut -d'.' -f$inc) |
|
|
doma="$domain.$tld" |
|
|
doma="$domain.$tld" |
|
|