Skip to content

Commit

Permalink
Checked up on shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbn committed Jan 22, 2023
1 parent 59e9d34 commit a25dc88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .shellcheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
disable=SC2089,SC2090 # Disable individual error codes
9 changes: 5 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if [ -n "$INPUT_SOURCE_FILES" ]; then

if [ "$SPLIT" = true ]; then
echo "IFS = >$IFS<"
read -a arr <<< "$INPUT_SOURCE_FILES"
read -a -r arr <<< "$INPUT_SOURCE_FILES"

for FILE in "${arr[@]}"; do

Expand All @@ -76,7 +76,7 @@ if [ -n "$INPUT_SOURCE_FILES" ]; then
unset OIFS

else
read -a arr <<< "$INPUT_SOURCE_FILES"
read -a -r arr <<< "$INPUT_SOURCE_FILES"

for FILE in "${arr[@]}"; do
SOURCES_LIST="$SOURCES_LIST --source $FILE"
Expand All @@ -94,10 +94,11 @@ fi

echo "----------------------------------------------------------------"

# shellcheck disable=SC2086
if [ -n "$INPUT_OUTPUT_FILE" ]; then
pyspelling -v --config $SPELLCHECK_CONFIG_FILE $TASK_NAME $SOURCES_LIST | tee $INPUT_OUTPUT_FILE
pyspelling --verbose --config "$SPELLCHECK_CONFIG_FILE" $TASK_NAME $SOURCES_LIST | tee "$INPUT_OUTPUT_FILE"
else
pyspelling -v --config $SPELLCHECK_CONFIG_FILE $TASK_NAME $SOURCES_LIST
pyspelling --verbose --config "$SPELLCHECK_CONFIG_FILE" $TASK_NAME $SOURCES_LIST
fi


Expand Down

0 comments on commit a25dc88

Please sign in to comment.