[oe-commits] Chris Larson : bin/wrapper.sh: fix sed self exec
git version control
git at git.openembedded.org
Fri Nov 12 05:06:38 UTC 2010
Module: openembedded.git
Branch: testing-next
Commit: c5b9544d95a4f2321cf647bd174048d76f6aa51e
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c5b9544d95a4f2321cf647bd174048d76f6aa51e
Author: Chris Larson <chris_larson at mentor.com>
Date: Fri Nov 5 13:15:51 2010 -0700
bin/wrapper.sh: fix sed self exec
Signed-off-by: Chris Larson <chris_larson at mentor.com>
---
bin/wrapper.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/wrapper.sh b/bin/wrapper.sh
index 3a93475..d29d5b9 100644
--- 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)" "$@"
}
More information about the Openembedded-commits
mailing list