[PC-BSD Commits] r19042 - pcbsd/current/src-sh/libsh

svn at pcbsd.org svn at pcbsd.org
Tue Sep 11 08:16:59 PDT 2012


Author: kris
Date: 2012-09-11 15:16:58 +0000 (Tue, 11 Sep 2012)
New Revision: 19042

Modified:
   pcbsd/current/src-sh/libsh/functions.sh
Log:

Add LOGFILE to exit_err



Modified: pcbsd/current/src-sh/libsh/functions.sh
===================================================================
--- pcbsd/current/src-sh/libsh/functions.sh	2012-09-11 15:15:53 UTC (rev 19041)
+++ pcbsd/current/src-sh/libsh/functions.sh	2012-09-11 15:16:58 UTC (rev 19042)
@@ -84,6 +84,9 @@
 # Exit with a error message
 exit_err() {
         echo "ERROR: ${1}"
+	if [ -n "${LOGFILE}" ] ; then
+           echo "ERROR: ${1}" >> ${LOGFILE}
+	fi
         exit 1
 }
 



More information about the Commits mailing list