summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-09-02 15:56:46 -0700
committerZac Medico <zmedico@gentoo.org>2012-09-02 15:56:46 -0700
commitd184c0f32eba2eec3a8d28ae71be79aa635db147 (patch)
treee351595adec837826161570d8a4723d3eaa52af9 /bin/ebuild-helpers
parent952d5c235ed1b440cd156654014fd51f55b638cb (diff)
downloadportage-d184c0f32eba2eec3a8d28ae71be79aa635db147.tar.gz
portage-d184c0f32eba2eec3a8d28ae71be79aa635db147.tar.bz2
portage-d184c0f32eba2eec3a8d28ae71be79aa635db147.zip
Quote ${EAPI} more.
This will avoid a potential syntax error in save-ebuild-env.sh if a saved environment containing corrupt EAPI is sourced.
Diffstat (limited to 'bin/ebuild-helpers')
-rwxr-xr-xbin/ebuild-helpers/doheader2
-rwxr-xr-xbin/ebuild-helpers/newins2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild-helpers/doheader b/bin/ebuild-helpers/doheader
index 9bbe5bc29..c51ec1ed9 100755
--- a/bin/ebuild-helpers/doheader
+++ b/bin/ebuild-helpers/doheader
@@ -4,7 +4,7 @@
source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
-case ${EAPI} in
+case "${EAPI}" in
0|1|2|3|4|4-python|4-slot-abi)
die "${0##*/} is not supported in EAPI ${EAPI}"
;;
diff --git a/bin/ebuild-helpers/newins b/bin/ebuild-helpers/newins
index 2dc041d15..54245f3bc 100755
--- a/bin/ebuild-helpers/newins
+++ b/bin/ebuild-helpers/newins
@@ -15,7 +15,7 @@ fi
eqawarn "QA Notice: ${helper} called with more than 2 arguments: ${@:3}"
stdin=
-case ${EAPI} in
+case "${EAPI}" in
0|1|2|3|4|4-python|4-slot-abi) ;;
*) [[ $1 = "-" ]] && stdin=yes ;;
esac