Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Sep 2012 14:50:24 -0700
From:      Jos Backus <jos@catnook.com>
To:        Josh Paetzel <jpaetzel@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r240165 - head/usr.sbin/pc-sysinstall/backend
Message-ID:  <CAETOPp3CETKoWvF-SN5xubFZZrDmY5rhddqCDwLU9HBV2BGRDg@mail.gmail.com>
In-Reply-To: <201209061459.q86Exr56038506@svn.freebsd.org>
References:  <201209061459.q86Exr56038506@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 6, 2012 at 7:59 AM, Josh Paetzel <jpaetzel@freebsd.org> wrote:

> Modified: head/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh
>
> ==============================================================================
> --- head/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh   Thu Sep  6
> 13:54:01 2012        (r240164)
> +++ head/usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh   Thu Sep  6
> 14:59:53 2012        (r240165)
> ...
>    FOUNDPARTS="1"
> +  USEDAUTOSIZE=0
>
>    # Lets read in the config file now and setup our partitions
>    if [ "${_pType}" = "gpt" ] ; then
> @@ -245,7 +278,15 @@ setup_gpart_partitions()
>
>        if [ "$SIZE" = "0" ]
>        then
> -        SOUT=""
> +       if [ $USEDAUTOSIZE -eq 1 ] ; then
>

Style question: if $USEDAUTOSIZE is treated as a boolean value, why not use
`true' and `false' instead of `1' and `0'? No need to make shell code look
like C code. That way one can write:

if $USEDAUTOSIZE; then

Jos
-- 
Jos Backus
jos at catnook.com



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