[CentOS-devel] [PATCH] handle detached HEAD in get_sources and more

Fri Jun 13 08:42:48 UTC 2014
Elias Persson <delreich at takeit.se>

On 2014-06-12 20:12, Mike McLean wrote:
> +#parse command line args
> +BRANCH=''
> +while (($# > 0))
> +do
> +  case $1 in
> +    --branch)
> +        #specify branch instead of asking git
> +        BRANCH=$2
> +        shift 2
> +        ;;
> +    --surl)
> +        #override sources url
> +        surl=$2
> +        shift 2
> +        ;;
> +  esac
> +done
> +

The expected result of

$ bash get_sources.sh --sulr ...

is what?
(i.e. typo-ed opt should probably not cause endless looping.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Avoid-endless-loop-in-option-parsing-and-add-a-help-.patch
Type: text/x-patch
Size: 1603 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20140613/a1c232f7/attachment-0007.bin>