Skip to content

Commit

Permalink
Surround composer-cli call with set +e/set -e as a workaround
Browse files Browse the repository at this point in the history
because apparently calling nvrGreaterOrEqual inside a for loop doesn't
behave as expected and this fails on the second iteration.
  • Loading branch information
atodorov authored and jrusz committed Dec 22, 2023
1 parent b47e741 commit 42a9091
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/cases/cross-distro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ distro= "$REMAINING_DISTRO"
[[packages]]
name = "bash"
EOF

set +e
RESPONSE=$(sudo composer-cli blueprints push $TEST_BP 2>&1)
set -e

echo "DEBUG: $REMAINING_DISTRO, RESPONSE=$RESPONSE"

Expand Down

0 comments on commit 42a9091

Please sign in to comment.