Skip to content

Commit

Permalink
Merge pull request #1456 from br-cpvc/wip_20221122_1200
Browse files Browse the repository at this point in the history
BUG: fixed Scripts/antsAtroposN4.sh not stopping when subcommands exit with exitcode>0
  • Loading branch information
cookpa authored Nov 28, 2022
2 parents b772b65 + 0fcc7d9 commit 9f8e682
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Scripts/antsAtroposN4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ function logCmd() {
echo $cmd

exec 5>&1
logCmdOutput=$( "$@" | tee >(cat - >&5) )
logCmdOutput=$( "$@" | tee >(cat - >&5); exit ${PIPESTATUS[0]} )

cmdExit=${PIPESTATUS[0]}
cmdExit=$?

if [[ $cmdExit -gt 0 ]];
then
Expand All @@ -193,8 +193,8 @@ function logCmd() {
if [[ ! $DEBUG_MODE -gt 0 ]];
then
exit 1
fi
fi
fi
fi

echo "END <<<<<<<<<<<<<<<<<<<<"
echo
Expand Down

0 comments on commit 9f8e682

Please sign in to comment.