replaced increment/decrement with _math function

This commit is contained in:
linux-insideDE authored and GitHub committed 2018-05-15 14:38:29 +02:00
1 parent 3f0462b68b
commit 6a4aad1aa8
1 file changed
+4 -4
+4 -4
View File
@@ -36,7 +36,7 @@ dns_netcup_add() {
break;
fi
fi
i=$((i - 1))
i=$(_math "$i" - 1)
done
inc=""
i=1
@@ -52,7 +52,7 @@ dns_netcup_add() {
inc="$inc$i,"
fi
fi
i=$((i + 1))
i=$(_math "$i" + 1)
done
tmp=$(echo "$fulldomain" | cut -d'.' -f$inc)
@@ -85,7 +85,7 @@ dns_netcup_rm() {
break;
fi
fi
i=$((i - 1))
i=$(_math "$i" - 1)
done
inc=""
i=1
@@ -101,7 +101,7 @@ dns_netcup_rm() {
inc="$inc$i,"
fi
fi
i=$((i + 1))
i=$(_math "$i" + 1)
done
tmp=$(echo "$fulldomain" | cut -d'.' -f$inc)
doma="$domain.$tld"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.