fix: disable set -e during Perl lint to capture exit status
This commit is contained in:
parent
2b8be2388d
commit
814e9396e7
1 changed files with 3 additions and 0 deletions
|
|
@ -89,8 +89,11 @@ fi
|
|||
echo "Perl SDKs:"
|
||||
if command -v perl &>/dev/null; then
|
||||
# perl -c loads modules which may not be installed, so check for missing module errors
|
||||
# Capture output and status separately to avoid set -e triggering
|
||||
set +e
|
||||
PERL_OUTPUT=$(perl -c "$CLIENTS_DIR/perl/sync/src/un.pl" 2>&1)
|
||||
PERL_EXIT=$?
|
||||
set -e
|
||||
if [[ $PERL_EXIT -eq 0 ]]; then
|
||||
echo " [PASS] perl-sync"
|
||||
PASSED=$((PASSED + 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue