From e339a967c00f280d76376abd6ca7488b463d93ad Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Thu, 16 Apr 2020 13:23:36 -0500 Subject: [PATCH] fixed it --- lib/linter.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/linter.sh b/lib/linter.sh index 37c24f3f..1c8f2946 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1229,7 +1229,7 @@ BuildFileList() ################# # Check if bash # ################# - if [[ "$GET_FILE_TYPE_CMD" =~ *"Bourne-Again shell script"* ]]; then + if [[ "$GET_FILE_TYPE_CMD" == *"Bourne-Again shell script"* ]]; then ####################### # It is a bash script # ####################### @@ -1243,7 +1243,7 @@ BuildFileList() # Set the READ_ONLY_CHANGE_FLAG since this could be exec # ########################################################## READ_ONLY_CHANGE_FLAG=1 - elif [[ "$GET_FILE_TYPE_CMD" =~ *"Ruby script"* ]]; then + elif [[ "$GET_FILE_TYPE_CMD" == *"Ruby script"* ]]; then ####################### # It is a Ruby script # #######################