summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-09-16 18:27:32 -0700
committerZac Medico <zmedico@gentoo.org>2012-09-16 18:27:32 -0700
commit087fc47e7c98f1c49ab5b873f3b476f8c1e00a17 (patch)
tree42fab66053c0ac8e4bcf54ef6b507890ff9b5533 /bin/ebuild-helpers
parent3da62f9d447c0bfa4089554deb485c4eeeae9879 (diff)
downloadportage-087fc47e7c98f1c49ab5b873f3b476f8c1e00a17.tar.gz
portage-087fc47e7c98f1c49ab5b873f3b476f8c1e00a17.tar.bz2
portage-087fc47e7c98f1c49ab5b873f3b476f8c1e00a17.zip
doheader: don't count -r as required arg
Diffstat (limited to 'bin/ebuild-helpers')
-rwxr-xr-xbin/ebuild-helpers/doheader2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/doheader b/bin/ebuild-helpers/doheader
index fa1156404..db3a02d09 100755
--- a/bin/ebuild-helpers/doheader
+++ b/bin/ebuild-helpers/doheader
@@ -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