From owner-svn-src-user@FreeBSD.ORG Sun Jan 30 15:36:20 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 415BC1065675; Sun, 30 Jan 2011 15:36:20 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 320EE8FC1E; Sun, 30 Jan 2011 15:36:20 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p0UFaKGi076350; Sun, 30 Jan 2011 15:36:20 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p0UFaKWs076348; Sun, 30 Jan 2011 15:36:20 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <201101301536.p0UFaKWs076348@svn.freebsd.org> From: Nathan Whitehorn Date: Sun, 30 Jan 2011 15:36:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r218096 - user/nwhitehorn/bsdinstall X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Jan 2011 15:36:20 -0000 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