Project

General

Profile

« Previous | Next » 

Revision 23975558

Added by Renato Botelho almost 10 years ago

Check if file exists before try to access it

View differences:

tools/builder_common.sh
136 136
	if [ "$1" != "" ]; then
137 137
		echo $1
138 138
	fi
139
	[ -n "${LOGFILE:-}" ] && \
139
	[ -n "${LOGFILE:-}" -a -f "${LOGFILE}" ] && \
140 140
		echo "Log saved on ${LOGFILE}" && \
141 141
		tail -n20 ${LOGFILE} >&2
142 142
	echo

Also available in: Unified diff