From 4ccd6b35c969a717613e027707c606b537d1a271 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Mon, 29 Jun 2020 10:43:52 -0500 Subject: [PATCH] fixed bug --- lib/linter.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/linter.sh b/lib/linter.sh index b69ee0b7..dea50fab 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -143,9 +143,13 @@ DEFAULT_IFS="$IFS" # Get the Default IFS for updating ############################################################### # shellcheck disable=SC2034 DEFAULT_DISABLE_ERRORS='false' # Default to enabling errors +# shellcheck disable=SC2034 RAW_FILE_ARRAY=() # Array of all files that were changed +# shellcheck disable=SC2034 READ_ONLY_CHANGE_FLAG=0 # Flag set to 1 if files changed are not txt or md +# shellcheck disable=SC2034 TEST_CASE_FOLDER='.automation/test' # Folder for test cases we should always ignore +# shellcheck disable=SC2034 DEFAULT_ANSIBLE_DIRECTORY="$GITHUB_WORKSPACE/ansible" # Default Ansible Directory ########################## @@ -603,6 +607,11 @@ Footer() ########################### ERROR_COUNTER="ERRORS_FOUND_$LANGUAGE" + ################################# + # Fix Integer Expression errors # + ################################# + ERROR_COUNTER="${ERROR_COUNTER/.*}" + ################## # Print if not 0 # ##################