aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <zlin@exherbo.org> 2008-06-28 17:11:58 +0200
committerAvatar Bo ├śrsted Andresen <zlin@exherbo.org> 2008-06-28 23:13:55 +0200
commite0b4ddd2f6ff081e130e0ac82ecdcfcfe66e4520 (patch)
tree69ecce1d4eccc9d50546bbc5d4ff94832497b0a5
parent802298f25d62d17939e0c706ae4ebc9298c22408 (diff)
downloadpaludis-e0b4ddd2f6ff081e130e0ac82ecdcfcfe66e4520.tar.gz
paludis-e0b4ddd2f6ff081e130e0ac82ecdcfcfe66e4520.tar.xz
Require at least one argument for keepdir.
-rw-r--r--paludis/repositories/e/ebuild/install_functions.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/install_functions.bash b/paludis/repositories/e/ebuild/install_functions.bash
index cbd6c73..acfed99 100644
--- a/paludis/repositories/e/ebuild/install_functions.bash
+++ b/paludis/repositories/e/ebuild/install_functions.bash
@@ -33,6 +33,9 @@ export MOPREFIX="${PN}"
keepdir()
{
+ if [[ ${#} -lt 1 ]]; then
+ paludis_die_unless_nonfatal "at least one argument needed"
+ fi
if [[ ${@} != ${@#${D}} ]]; then
paludis_die_unless_nonfatal "You should not use \${D} with helpers."
fi