summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-09-01 15:51:25 -0700
committerZac Medico <zmedico@gentoo.org>2012-09-01 15:51:25 -0700
commit0b657f683f8498de59cf254dfb016bf313930b1d (patch)
tree7fb1e6ed80e7ea3d887af51c342d59b7de918f4f /bin/ebuild-helpers
parentca755a56b628c8296630c3e435425b14d3b8bf10 (diff)
downloadportage-0b657f683f8498de59cf254dfb016bf313930b1d.tar.gz
portage-0b657f683f8498de59cf254dfb016bf313930b1d.tar.bz2
portage-0b657f683f8498de59cf254dfb016bf313930b1d.zip
ebuild-helpers/sed: use -ef to check recursion
Diffstat (limited to 'bin/ebuild-helpers')
-rwxr-xr-xbin/ebuild-helpers/sed4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild-helpers/sed b/bin/ebuild-helpers/sed
index b21e8569c..cc447696d 100755
--- a/bin/ebuild-helpers/sed
+++ b/bin/ebuild-helpers/sed
@@ -1,5 +1,5 @@
#!/bin/bash
-# Copyright 2007 Gentoo Foundation
+# Copyright 2007-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
scriptpath=${BASH_SOURCE[0]}
@@ -14,8 +14,8 @@ else
IFS=":"
for path in $PATH; do
- [[ ${path}/${scriptname} == ${scriptpath} ]] && continue
if [[ -x ${path}/${scriptname} ]]; then
+ [[ ${path}/${scriptname} -ef ${scriptpath} ]] && continue
exec ${path}/${scriptname} "$@"
exit 0
fi