Skip to content

Commit

Permalink
chore: fix input name
Browse files Browse the repository at this point in the history
  • Loading branch information
adthrasher committed Oct 23, 2024
1 parent c8eccbd commit be94b3d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
#!/bin/bash

echo "===configuration==="
echo "lint: $INPUT_LINT"
echo "exceptions: $INPUT_EXCEPT"
echo "warnings: $INPUT_WARNINGS"
echo "notes: $INPUT_NOTES"
echo "patterns: $INPUT_PATTERNS"

lint=""
exceptions=""

if [ $INPUT_LINT = "true" ]; then
lint="--lint"
if [ -n "$INPUT_EXCEPTIONS" ]; then
if [ -n "$INPUT_EXCEPT" ]; then
echo "Excepted rule(s) provided."
for exception in $(echo $INPUT_EXCEPTIONS | sed 's/,/ /')
for exception in $(echo $INPUT_EXCEPT | sed 's/,/ /')
do
exceptions="$exceptions --except $exception"
done
Expand Down Expand Up @@ -51,6 +58,7 @@ do
fi
fi
echo " [***] $file [***]"
echo "sprocket check $lint $warnings $notes $exceptions $file"
sprocket check $lint $warnings $notes $exceptions $file || EXITCODE=$(($? || EXITCODE))
done

Expand Down

0 comments on commit be94b3d

Please sign in to comment.