Skip to content

Commit

Permalink
Fixup: try running list-targets with set -e
Browse files Browse the repository at this point in the history
  • Loading branch information
elaguerta-nr authored Nov 7, 2023
1 parent 90b7456 commit 3c32b3c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ jobs:
name: Run fossa list-targets
run: |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
list_targets_output="$(fossa list-targets 2>&1)"
printf -- "%s\n" "$list_targets_output"
list_targets_output="$(fossa list-targets 2>&1)"
list_targets_output=$(set -e; fossa list-targets 2>&1)
printf -- "%s\n" "$list_targets_output"
if [[ $(echo $list_targets_output | grep "Error" | wc -l) -gt 0 ]]
Expand Down

0 comments on commit 3c32b3c

Please sign in to comment.