Explorar el Código

Update main.sh

Maksim Usmanov | Maks hace 9 años
padre
commit
22084a79b6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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