Project

General

Profile

« Previous | Next » 

Revision ce7afe66

Added by Renato Botelho almost 10 years ago

Send logs to /dev/null if logfile is not defined

View differences:

src/usr/local/sbin/pfsense-upgrade.sh
94 94
		_n="-n"
95 95
	fi
96 96

  
97
	if [ -z "${logfile}" ]; then
98
		logfile=/dev/null
99
	fi
100

  
97 101
	echo ${_n} "${1}" | tee -a ${logfile}
98 102
}
99 103

  

Also available in: Unified diff