Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/subroutines
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ call_hook() {
local hook=$1
shift

local cl dflag hfile
local cl dflag hfile te
[ "$debug" ] && dflag="-d"

for cl in $classes; do
Expand Down Expand Up @@ -383,6 +383,12 @@ call_hook() {
# execute the hook
$hfile $dflag "$@"
check_status $hook.$cl $?
te=$(< $LOGDIR/task_error)
if [ "$te" -gt "$STOP_ON_ERROR" ]; then
task_error=$te
task_error_func=$hook.$cl
stop_fai_installation
fi
fi
done
}
Expand Down