mirror of
https://github.com/dynup/kpatch
synced 2025-04-18 04:55:21 +00:00
Merge pull request #400 from cormander/die-changes
Always echo the $LOGFILE on kpatch-build failure
This commit is contained in:
commit
4a96e11768
@ -55,10 +55,13 @@ warn() {
|
||||
|
||||
die() {
|
||||
if [[ -z $1 ]]; then
|
||||
warn "kpatch build failed. Check $LOGFILE for more details."
|
||||
msg="kpatch build failed"
|
||||
else
|
||||
warn "$1"
|
||||
msg="$1"
|
||||
fi
|
||||
|
||||
warn "$msg. Check $LOGFILE for more details."
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
||||
@ -436,11 +439,9 @@ for i in $FILES; do
|
||||
warn "create-diff-object SIGSEGV"
|
||||
if ls core* &> /dev/null; then
|
||||
cp core* /tmp
|
||||
warn "core file at /tmp/$(ls core*)"
|
||||
else
|
||||
warn "no core file found, run 'ulimit -c unlimited' and try to recreate"
|
||||
die "core file at /tmp/$(ls core*)"
|
||||
fi
|
||||
exit 1
|
||||
die "no core file found, run 'ulimit -c unlimited' and try to recreate"
|
||||
fi
|
||||
# create-diff-object returns 3 if no functional change is found
|
||||
[[ $rc -eq 0 ]] || [[ $rc -eq 3 ]] || die
|
||||
|
Loading…
Reference in New Issue
Block a user