mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-20 07:53:01 +02:00
make.sh: Show last lines of log when build aborts
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -310,6 +310,16 @@ exiterror() {
|
||||
losetup -d /dev/loop${i} 2>/dev/null
|
||||
fi;
|
||||
done
|
||||
|
||||
if [ -n "${LOGFILE}" ]; then
|
||||
echo # empty line
|
||||
|
||||
local line
|
||||
while read -r line; do
|
||||
echo " ${line}"
|
||||
done <<< "$(tail -n30 ${LOGFILE})"
|
||||
fi
|
||||
|
||||
echo -e "\nERROR: $*"
|
||||
echo " Check $LOGFILE for errors if applicable"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user