[SM-Commit] GIT changes to test cauldron by Justin Boffemmyer (daf66412138785db43ef5df6f55443d97a432e03)

Jaka Kranjc smgl at lynxlynx.info
Tue Oct 14 04:27:18 EDT 2008


On Tuesday 14 of October 2008 04:59:52 Justin Boffemmyer wrote:
>     scripts/mkiso.sh: simpler compress option handling
>
>     Simplified the handling of the compress option by using true and false
>     instead of string values.
>
> diff --git a/scripts/mkiso.sh b/scripts/mkiso.sh
> index 4e6e95f..455572d 100755
> --- a/scripts/mkiso.sh
> +++ b/scripts/mkiso.sh
> @@ -1,6 +1,6 @@
>  #!/bin/bash
>
> -COMPRESS="no"
> +COMPRESS=false
>  ISOCHOWN=false
>  KEEP=
>
> @@ -62,7 +62,7 @@ ISO_VERSION=$2
> -if [[ "$COMPRESS" == yes || -n "$KEEP" ]]
> +if [[ $COMPRESS || -n $KEEP ]]
>  then
Unless COMPRESS is unset somewhere too, this check will always be true. 
Strings evaluate to true.

LP
-- 
We cannot command nature except by obeying her.  --Sir Francis Bacon
Have a sourcerous day! www.sourcemage.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: This is a digitally signed message part.
Url : http://lists.ibiblio.org/pipermail/sm-commit/attachments/20081014/a34accbc/attachment.bin 


More information about the SM-Commit mailing list