Skip to content

Commit 814e939

Browse files
fix: disable set -e during Perl lint to capture exit status
1 parent 2b8be23 commit 814e939

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/science/lint-all-sdks.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,11 @@ fi
8989
echo "Perl SDKs:"
9090
if command -v perl &>/dev/null; then
9191
# perl -c loads modules which may not be installed, so check for missing module errors
92+
# Capture output and status separately to avoid set -e triggering
93+
set +e
9294
PERL_OUTPUT=$(perl -c "$CLIENTS_DIR/perl/sync/src/un.pl" 2>&1)
9395
PERL_EXIT=$?
96+
set -e
9497
if [[ $PERL_EXIT -eq 0 ]]; then
9598
echo " [PASS] perl-sync"
9699
PASSED=$((PASSED + 1))

0 commit comments

Comments
 (0)