Skip to content

Commit

Permalink
allow early abort after each script
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Dec 1, 2020
1 parent 4b4eec6 commit 7791aa1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/fai-class
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ for f in $scripts ; do
verbosemsg "Executing $classdir/$f."
classes=`./$f`
fc_check_status $f $?
if [ -f $LOGDIR/task_local_error ]; then
lerr=$(< $LOGDIR/task_local_error)
task_error $lerr
fi
echo $classes | addclass
;;
esac
Expand Down

0 comments on commit 7791aa1

Please sign in to comment.