Skip to content

Commit

Permalink
#9 Fixed "bad substitution" error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Epatko committed Mar 6, 2024
1 parent 1cca2b5 commit 48910b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion action.yml
Expand Up @@ -41,7 +41,8 @@ runs:
-d $DIR \
-s $SINCE \
-o $OUTPUT_DIR \
-f $FILENAME ${$EXCLUDE:+"-e ${$EXCLUDE[@]}"}
-f $FILENAME \
-e $EXCLUDE
shell: bash
env:
BEFORE: ${{ inputs.before }}
Expand Down
3 changes: 2 additions & 1 deletion generate-badge.sh
Expand Up @@ -10,7 +10,7 @@ while getopts 'b:d:e:f:o:s:' opt; do
Dir="$OPTARG"
;;
e)
Exclude="$OPTARG"
Excld="$OPTARG"
;;
f)
Filename="$OPTARG"
Expand All @@ -33,6 +33,7 @@ while getopts 'b:d:e:f:o:s:' opt; do
done

if [ "$Before" == '[]' ]; then Before="$(date +%F)"; fi
if [ "$Excld" != '[]' ]; then Exclude="$Excld"; fi

echo "$Dir ${Exclude[*]} $Since $Before"

Expand Down

0 comments on commit 48910b5

Please sign in to comment.