summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-13 18:52:07 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-13 18:52:07 +0000
commit0c6454261c514f021a4ddce2415a68773027ed6a (patch)
tree35c3d8c0c0bed71a7f22c80a1b8b0cc369d105b5
parentdf6bb77f8e66cd1ead7f9f27583ff4e7cae60c85 (diff)
downloadportage-0c6454261c514f021a4ddce2415a68773027ed6a.tar.gz
portage-0c6454261c514f021a4ddce2415a68773027ed6a.tar.bz2
portage-0c6454261c514f021a4ddce2415a68773027ed6a.zip
make sure people call addread/addwrite/adddeny/addpredict correctly
svn path=/main/trunk/; revision=5632
-rwxr-xr-xbin/ebuild.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index caf371940..57eca618a 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -87,18 +87,22 @@ export SANDBOX_ON="0"
# sandbox support functions; defined prior to profile.bashrc srcing, since the profile might need to add a default exception (/usr/lib64/conftest fex)
addread() {
+ [[ -z $1 || -n $2 ]] && die "Usage: addread <colon-delimited list of paths>"
export SANDBOX_READ="$SANDBOX_READ:$1"
}
addwrite() {
+ [[ -z $1 || -n $2 ]] && die "Usage: addwrite <colon-delimited list of paths>"
export SANDBOX_WRITE="$SANDBOX_WRITE:$1"
}
adddeny() {
+ [[ -z $1 || -n $2 ]] && die "Usage: adddeny <colon-delimited list of paths>"
export SANDBOX_DENY="$SANDBOX_DENY:$1"
}
addpredict() {
+ [[ -z $1 || -n $2 ]] && die "Usage: addpredict <colon-delimited list of paths>"
export SANDBOX_PREDICT="$SANDBOX_PREDICT:$1"
}