Unverified Commit 4fffb3c8 authored by linux-insideDE's avatar linux-insideDE Committed by GitHub
Browse files

make shfmt happy

parent 840b3a34
...@@ -24,7 +24,8 @@ dns_netcup_add() { ...@@ -24,7 +24,8 @@ dns_netcup_add() {
i=$exit i=$exit
while while
[ "$exit" -gt 0 ]; do [ "$exit" -gt 0 ]
do
tmp=$(echo "$fulldomain" | cut -d'.' -f"$exit") tmp=$(echo "$fulldomain" | cut -d'.' -f"$exit")
if [ "$(_math "$i" - "$exit")" -eq 0 ]; then if [ "$(_math "$i" - "$exit")" -eq 0 ]; then
domain="$tmp" domain="$tmp"
...@@ -60,7 +61,8 @@ dns_netcup_rm() { ...@@ -60,7 +61,8 @@ dns_netcup_rm() {
rec="" rec=""
while while
[ "$exit" -gt 0 ]; do [ "$exit" -gt 0 ]
do
tmp=$(echo "$fulldomain" | cut -d'.' -f"$exit") tmp=$(echo "$fulldomain" | cut -d'.' -f"$exit")
if [ "$(_math "$i" - "$exit")" -eq 0 ]; then if [ "$(_math "$i" - "$exit")" -eq 0 ]; then
domain="$tmp" domain="$tmp"
...@@ -88,7 +90,8 @@ dns_netcup_rm() { ...@@ -88,7 +90,8 @@ dns_netcup_rm() {
ids=0000000000 ids=0000000000
i=1 i=1
while while
[ "$i" -ne 0 ]; do [ "$i" -ne 0 ]
do
specrec=$(_getfield "$rec" "$i" ";") specrec=$(_getfield "$rec" "$i" ";")
idv="$ida" idv="$ida"
ida=$(_getfield "$specrec" "1" "," | sed 's/\"id\":\"//g' | sed 's/\"//g') ida=$(_getfield "$specrec" "1" "," | sed 's/\"id\":\"//g' | sed 's/\"//g')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment