Browse Source

Update dns_limacity.sh

laraveluser 1 năm trước cách đây
mục cha
commit
ab911f1ce9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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