Skip to content

Commit

Permalink
fixed failure report for tesstrain commands:
Browse files Browse the repository at this point in the history
- with `set -e` in effect, it does not make sense
  to query `$?` indirectly
  • Loading branch information
bertsky authored and stweil committed Apr 6, 2019
1 parent 3912cb1 commit d5584e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/training/tesstrain_utils.sh
Expand Up @@ -83,9 +83,7 @@ run_command() {
fi
shift
tlog "[$(date)] ${cmd} $@"
"${cmd}" "$@" 2>&1 1>&2 | tee -a ${LOG_FILE}
# check completion status
if [[ $? -gt 0 ]]; then
if ! "${cmd}" "$@" 2>&1 1>&2 | tee -a ${LOG_FILE}; then
err_exit "Program $(basename ${cmd}) failed. Abort."
fi
}
Expand Down

0 comments on commit d5584e7

Please sign in to comment.