[arch-projects] [devtools] [PATCH 2/2] makechroot: die if we encounter an unexpected option

Dave Reisner d at falconindy.com
Sun Oct 19 23:35:59 UTC 2014


On Sun, Oct 19, 2014 at 04:54:27PM -0400, Dave Reisner wrote:
> ---
>  makechrootpkg.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/makechrootpkg.in b/makechrootpkg.in
> index 8957974..7b3daa6 100644
> --- a/makechrootpkg.in
> +++ b/makechrootpkg.in
> @@ -70,7 +70,7 @@ orig_argv=("$@")
>  
>  while getopts 'hcur:I:l:nTD:d:' arg; do
>  	case "$arg" in
> -		h) usage ;;
> +		h|*) usage ;;

Derp, obviously this must also move to be the last label, as is done
elsewhere...

>  		c) clean_first=true ;;
>  		D) bindmounts_ro+=(--bind-ro="$OPTARG") ;;
>  		d) bindmounts_rw+=(--bind="$OPTARG") ;;
> -- 
> 2.1.2


More information about the arch-projects mailing list