svn commit: r290294 - stable/10/usr.sbin/bsdinstall/scripts

Devin Teske dteske at FreeBSD.org
Mon Nov 2 22:09:45 UTC 2015


Author: dteske
Date: Mon Nov  2 22:09:43 2015
New Revision: 290294
URL: https://svnweb.freebsd.org/changeset/base/290294

Log:
  MFC r287686: Produce meaningful exit code

Modified:
  stable/10/usr.sbin/bsdinstall/scripts/hostname
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/bsdinstall/scripts/hostname
==============================================================================
--- stable/10/usr.sbin/bsdinstall/scripts/hostname	Mon Nov  2 22:08:59 2015	(r290293)
+++ stable/10/usr.sbin/bsdinstall/scripts/hostname	Mon Nov  2 22:09:43 2015	(r290294)
@@ -44,6 +44,9 @@ if [ $? -eq $DIALOG_CANCEL ]; then exit 
 exec 3>&-
 
 echo "hostname=\"$HOSTNAME\"" > $BSDINSTALL_TMPETC/rc.conf.hostname
-if [ ! -z $BSDINSTALL_CONFIGCURRENT ]; then
+retval=$?
+if [ "$BSDINSTALL_CONFIGCURRENT" ]; then
 	hostname -s "$HOSTNAME"
+	retval=$?
 fi
+exit $retval


More information about the svn-src-all mailing list