Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jan 2011 15:36:20 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r218096 - user/nwhitehorn/bsdinstall
Message-ID:  <201101301536.p0UFaKWs076348@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Sun Jan 30 15:36:19 2011
New Revision: 218096
URL: http://svn.freebsd.org/changeset/base/218096

Log:
  Use a cleaner syntax for setting default parameters.

Modified:
  user/nwhitehorn/bsdinstall/bsdinstall

Modified: user/nwhitehorn/bsdinstall/bsdinstall
==============================================================================
--- user/nwhitehorn/bsdinstall/bsdinstall	Sun Jan 30 15:10:58 2011	(r218095)
+++ user/nwhitehorn/bsdinstall/bsdinstall	Sun Jan 30 15:36:19 2011	(r218096)
@@ -1,11 +1,11 @@
 #!/bin/sh
 
-[ -z "$DISTRIBUTIONS" ] && export DISTRIBUTIONS="kernel.tgz world.tgz"
-[ -z "$BSDINSTALL_LOG" ] && export BSDINSTALL_LOG="/tmp/bsdinstall_log"
-[ -z "$BSDINSTALL_TMPETC" ] && export BSDINSTALL_TMPETC="/tmp/bsdinstall_etc"
-[ -z "$PATH_FSTAB" ] && export PATH_FSTAB="$BSDINSTALL_TMPETC/fstab"
-[ -z "$BSDINSTALL_DISTDIR" ] && export BSDINSTALL_DISTDIR="/usr/bsdinstall-dist"
-[ -z "$BSDINSTALL_CHROOT" ] && export BSDINSTALL_CHROOT="/mnt"
+: ${DISTRIBUTIONS="kernel.tgz world.tgz"}; export DISTRIBUTIONS
+: ${BSDINSTALL_LOG="/tmp/bsdinstall_log"}; export BSDINSTALL_LOG
+: ${BSDINSTALL_TMPETC="/tmp/bsdinstall_etc"}; export BSDINSTALL_TMPETC
+: ${PATH_FSTAB="$BSDINSTALL_TMPETC/fstab"}; export PATH_FSTAB
+: ${BSDINSTALL_DISTDIR="/usr/bsdinstall-dist"}; export BSDINSTALL_DISTDIR
+: ${BSDINSTALL_CHROOT="/mnt"}; export BSDINSTALL_CHROOT
 
 VERB=$1; shift
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101301536.p0UFaKWs076348>