projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca755a5
)
ebuild-helpers/sed: use -ef to check recursion
author
Zac Medico
<zmedico@gentoo.org>
Sat, 1 Sep 2012 22:51:25 +0000
(15:51 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 1 Sep 2012 22:51:25 +0000
(15:51 -0700)
bin/ebuild-helpers/sed
patch
|
blob
|
history
diff --git
a/bin/ebuild-helpers/sed
b/bin/ebuild-helpers/sed
index b21e8569c7eba2017166274434db6efb7b9dc1f4..cc447696d6345ca681a4fdcd97bd2a6c332f46d9 100755
(executable)
--- 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