Skip to content

Commit

Permalink
Merge pull request #24 from discoverygarden/fix/error-when-input-empty
Browse files Browse the repository at this point in the history
Fixing an issue when an input is empty.
  • Loading branch information
nchiasson-dgi authored Nov 24, 2022
2 parents e193d74 + b547d2b commit 8346240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ runs:
continue-on-error: ${{ inputs.phpcpd-continue == 'true' }}
run: |
output=""
IFS=',' read -ra SUFFIX <<< ${{ inputs.suffix }}
IFS=',' read -ra SUFFIX <<< "${{ inputs.suffix }}"
for suffix in "${SUFFIX[@]}"; do
output="${output} --suffix=${suffix}"
done
if [ ! -z "${{ inputs.phpcpd-exclude }}" ];
then
IFS=',' read -ra EXCLUDE <<< ${{ inputs.phpcpd-exclude }}
IFS=',' read -ra EXCLUDE <<< "${{ inputs.phpcpd-exclude }}"
for exclude in "${EXCLUDE[@]}"; do
output="${output} --exclude=${exclude}"
done
Expand Down

0 comments on commit 8346240

Please sign in to comment.