doheader: don't count -r as required arg
authorZac Medico <zmedico@gentoo.org>
Mon, 17 Sep 2012 01:27:32 +0000 (18:27 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 17 Sep 2012 01:27:32 +0000 (18:27 -0700)
bin/ebuild-helpers/doheader

index fa11564040df73d7ecc20274d65a624745b2e664..db3a02d09e8f3edc4bce2af00d49b14a85c7983a 100755 (executable)
@@ -10,7 +10,7 @@ case "${EAPI}" in
                ;;
 esac
 
-if [[ $# -lt 1 ]] ; then
+if [[ $# -lt 1 ]] || [[ $1 == -r && $# -lt 2 ]] ; then
        __helpers_die "${0##*/}: at least one argument needed"
        exit 1
 fi