Update main.sh

This commit is contained in:
Maksim Usmanov | Maks 2017-02-22 15:20:26 +01:00 committed by GitHub
parent e64049af0e
commit 22084a79b6

View file

@ -594,7 +594,7 @@ is_common_format_valid() {
check_result $E_INVALID "invalid $2 format :: $1" check_result $E_INVALID "invalid $2 format :: $1"
fi fi
if [[ $1 =~ \* ]]; then 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" check_result $E_INVALID "invalid $2 format :: $1"
fi fi
fi fi