From 22084a79b6b392c8652f01948bfadb58a48cd85f Mon Sep 17 00:00:00 2001 From: Maksim Usmanov | Maks Date: Wed, 22 Feb 2017 15:20:26 +0100 Subject: [PATCH] Update main.sh --- func/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/func/main.sh b/func/main.sh index b892a61b..e9c17455 100644 --- a/func/main.sh +++ b/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