diff --git a/action.yml b/action.yml index 5486695..a646476 100644 --- a/action.yml +++ b/action.yml @@ -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 }} diff --git a/generate-badge.sh b/generate-badge.sh index a0cdb75..7b4f7b2 100755 --- a/generate-badge.sh +++ b/generate-badge.sh @@ -10,7 +10,7 @@ while getopts 'b:d:e:f:o:s:' opt; do Dir="$OPTARG" ;; e) - Exclude="$OPTARG" + Excld="$OPTARG" ;; f) Filename="$OPTARG" @@ -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"