mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 08:41:02 -05:00
fix logic on shift
This commit is contained in:
parent
9367daf4b2
commit
0666a948d0
1 changed files with 4 additions and 4 deletions
|
@ -1081,10 +1081,10 @@ LintCodebase()
|
||||||
# Pull in the vars #
|
# Pull in the vars #
|
||||||
####################
|
####################
|
||||||
FILE_TYPE="$1" && shift # Pull the variable and remove from array path (Example: JSON)
|
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_NAME="$1" && 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)
|
LINTER_COMMAND="$1" && 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)
|
FILE_EXTENSIONS="$1" && 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)
|
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)
|
FILE_ARRAY=("$@") # Array of files to validate (Example: $FILE_ARRAY_JSON)
|
||||||
|
|
||||||
################
|
################
|
||||||
|
|
Loading…
Reference in a new issue