git.openpandora.org
/
openembedded.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
960846b
)
bin/wrapper.sh: fix sed self exec
author
Chris Larson
<chris_larson@mentor.com>
Fri, 5 Nov 2010 20:15:51 +0000
(13:15 -0700)
committer
Chris Larson
<chris_larson@mentor.com>
Fri, 5 Nov 2010 20:16:24 +0000
(13:16 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
bin/wrapper.sh
patch
|
blob
|
history
diff --git
a/bin/wrapper.sh
b/bin/wrapper.sh
index
3a93475
..
d29d5b9
100644
(file)
--- a/
bin/wrapper.sh
+++ b/
bin/wrapper.sh
@@
-2,6
+2,8
@@
path_remove () {
echo $PATH | tr ':' '\n' | grep -v "^$1\$" | tr '\n' ':'
}
+PATH="$(path_remove $(dirname $0))"
+
quote(){
sed -e "s,','\\\\'',g; 1s,^,',; \$s,\$,',;" << EOF
$1
@@
-23,7
+25,5
@@
save () {
exec_real () {
eval set -- "$saved"
- scriptdir="$(dirname $0)"
- PATH="$(path_remove $scriptdir)"
exec "$(basename $0)" "$@"
}