[Midnightbsd-cvs] src [8942] trunk/usr.sbin/bsdinstall/bsdinstall: misc fixes

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Sep 26 19:11:54 EDT 2016


Revision: 8942
          http://svnweb.midnightbsd.org/src/?rev=8942
Author:   laffer1
Date:     2016-09-26 19:11:54 -0400 (Mon, 26 Sep 2016)
Log Message:
-----------
misc fixes

Modified Paths:
--------------
    trunk/usr.sbin/bsdinstall/bsdinstall

Modified: trunk/usr.sbin/bsdinstall/bsdinstall
===================================================================
--- trunk/usr.sbin/bsdinstall/bsdinstall	2016-09-26 23:11:16 UTC (rev 8941)
+++ trunk/usr.sbin/bsdinstall/bsdinstall	2016-09-26 23:11:54 UTC (rev 8942)
@@ -33,12 +33,8 @@
 : ${BSDINSTALL_DISTDIR="/usr/midnightbsd-dist"}; export BSDINSTALL_DISTDIR
 : ${BSDINSTALL_CHROOT="/mnt"}; export BSDINSTALL_CHROOT
 
-VERB=$1; shift
+VERB=${1:-auto}; shift
 
-if [ -z "$VERB" ]; then
-	VERB=auto
-fi
-
-test -d "$BSDINSTALL_TMPETC" || mkdir "$BSDINSTALL_TMPETC"
+[ -d "$BSDINSTALL_TMPETC" ] || mkdir -p "$BSDINSTALL_TMPETC"
 echo "Running installation step: $VERB $@" >> "$BSDINSTALL_LOG"
-exec "/usr/libexec/bsdinstall/$VERB" "$@" 2>>"$BSDINSTALL_LOG"
+exec "/usr/libexec/bsdinstall/$VERB" "$@" 2>> "$BSDINSTALL_LOG"



More information about the Midnightbsd-cvs mailing list