瀏覽代碼

Update dns_limacity.sh

laraveluser 1 年之前
父節點
當前提交
ab911f1ce9
共有 1 個文件被更改,包括 1 次插入1 次删除
  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