mirror of https://github.com/dynup/kpatch
Merge pull request #437 from spartacus06/cleanup
check that logfile exists before printing message
This commit is contained in:
commit
ab1b487d90
|
@ -60,7 +60,11 @@ die() {
|
|||
msg="$1"
|
||||
fi
|
||||
|
||||
warn "$msg. Check $LOGFILE for more details."
|
||||
if [[ -e $LOGFILE ]]; then
|
||||
warn "$msg. Check $LOGFILE for more details."
|
||||
else
|
||||
warn "$msg."
|
||||
fi
|
||||
|
||||
exit 1
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue