Kaynağa Gözat

Update main.sh

Maksim Usmanov | Maks 9 yıl önce
ebeveyn
işleme
22084a79b6
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      func/main.sh

+ 1 - 1
func/main.sh

@@ -594,7 +594,7 @@ is_common_format_valid() {
         check_result $E_INVALID "invalid $2 format :: $1"
     fi
     if [[ $1 =~ \* ]]; then
-        if [[ "$(echo $1 | grep -o \*\. |wc -l)" -eq 0 ]] && [[ $1 != '*' ]] ; then
+        if [[ "$(echo $1 | grep -o '\*\.' |wc -l)" -eq 0 ]] && [[ $1 != '*' ]] ; then
                         check_result $E_INVALID "invalid $2 format :: $1"
         fi
     fi