mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Check if file exists before try to access it
This commit is contained in:
parent
230372b6b7
commit
23975558c6
@ -136,7 +136,7 @@ print_error_pfS() {
|
||||
if [ "$1" != "" ]; then
|
||||
echo $1
|
||||
fi
|
||||
[ -n "${LOGFILE:-}" ] && \
|
||||
[ -n "${LOGFILE:-}" -a -f "${LOGFILE}" ] && \
|
||||
echo "Log saved on ${LOGFILE}" && \
|
||||
tail -n20 ${LOGFILE} >&2
|
||||
echo
|
||||
|
||||
Loading…
Reference in New Issue
Block a user