Răsfoiți Sursa

Update dns_limacity.sh

laraveluser 1 an în urmă
părinte
comite
ab911f1ce9
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      dnsapi/dns_limacity.sh

+ 1 - 1
dnsapi/dns_limacity.sh

@@ -63,7 +63,7 @@ _lima_get_root() {
   _lima_get_root=$1
   i=1
   while true; do
-    h=$(printf "%s" "$_lima_get_root" | cut -d . -f $i-100)
+    h=$(printf "%s" "$_lima_get_root" | cut -d . -f $(_math "$i" -100))
     _debug h "$h"
     if [ -z "$h" ]; then
       #not valid