From 0666a948d0ed4a15ad5a9641e4c09d6d2a61e929 Mon Sep 17 00:00:00 2001 From: Lucas Gravley <29484535+admiralAwkbar@users.noreply.github.com> Date: Mon, 3 Feb 2020 10:49:25 -0600 Subject: [PATCH] fix logic on shift --- lib/linter.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/linter.sh b/lib/linter.sh index 5e72f7d5..669560ba 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -1081,10 +1081,10 @@ LintCodebase() # Pull in the vars # #################### FILE_TYPE="$1" && shift # Pull the variable and remove from array path (Example: JSON) - LINTER_NAME="$2" && shift # Pull the variable and remove from array path (Example: jsonlint) - LINTER_COMMAND="$3" && shift # Pull the variable and remove from array path (Example: jsonlint -c ConfigFile /path/to/file) - FILE_EXTENSIONS="$4" && shift # Pull the variable and remove from array path (Example: *.json) - ERROR_COUNTER="$5" && shift # Pull the variable and remove from array path (Example: $ERRORS_FOUND_JSON) + LINTER_NAME="$1" && shift # Pull the variable and remove from array path (Example: jsonlint) + LINTER_COMMAND="$1" && shift # Pull the variable and remove from array path (Example: jsonlint -c ConfigFile /path/to/file) + FILE_EXTENSIONS="$1" && shift # Pull the variable and remove from array path (Example: *.json) + ERROR_COUNTER="$1" && shift # Pull the variable and remove from array path (Example: $ERRORS_FOUND_JSON) FILE_ARRAY=("$@") # Array of files to validate (Example: $FILE_ARRAY_JSON) ################