Skip to content

Commit

Permalink
fix(action): Don't pass args to xargs
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeCantCU committed Dec 19, 2023
1 parent c5d76e1 commit 6dec50f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,17 @@ runs:
shell: bash
run: |
ARGUMENTS=""
[[ -n "${{ inputs.help }}" ]]; ARGUMENTS+=" -h "
[[ -n "${{ inputs.version }}" ]]; ARGUMENTS+=" -V "
[[ -n "${{ inputs.help }}" ]]; ARGUMENTS+=" -h "
[[ -n "${{ inputs.version }}" ]]; ARGUMENTS+=" -V "
[[ -n "${{ inputs.config }}" ]]; ARGUMENTS+=" -c ${{ inputs.config }} "
[[ -n "${{ inputs.explain }}" ]]; ARGUMENTS+=" -e ${{ inputs.explain }} "
[[ -n "${{ inputs.rpmlintrc }}" ]]; ARGUMENTS+=" -r ${{ inputs.rpmlintrc }} "
[[ -n "${{ inputs.verbose }}" ]]; ARGUMENTS+=" -v "
[[ -n "${{ inputs.print-config }}" ]]; ARGUMENTS+=" -p "
[[ -n "${{ inputs.installed }}" ]]; ARGUMENTS+=" -i ${{ inputs.installed }} "
[[ -n "${{ inputs.time-report }}" ]]; ARGUMENTS+=" -t "
[[ -n "${{ inputs.profile }}" ]]; ARGUMENTS+=" -T "
[[ -n "${{ inputs.profile }}" ]]; ARGUMENTS+=" -T "
[[ -n "${{ inputs.strict }}" ]]; ARGUMENTS+=" -s "
[[ -n "${{ inputs.permissive }}" ]]; ARGUMENTS+=" -p "
[[ -n "${{ inputs.rpmfiles }}" ]]; ARGUMENTS+=" ${{ inputs.rpmfiles }} "
ARGUMENTS=$(echo "$ARGUMENTS" | xargs)
rpmlint $ARGUMENTS
#[[ -n "${{ inputs.rpmfiles }}" ]]; ARGUMENTS+=" ${{ inputs.rpmfiles }} "
rpmlint

0 comments on commit 6dec50f

Please sign in to comment.