aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-05 13:15:51 -0700
committerChris Larson <chris_larson@mentor.com>2010-11-05 13:16:24 -0700
commitc5b9544d95a4f2321cf647bd174048d76f6aa51e (patch)
tree2a93f33345f735b8d5a9bccad4cb3ee8c0df0216
parent960846ba91afc8b75520671b719ee2c899cb1693 (diff)
downloadopenembedded-c5b9544d95a4f2321cf647bd174048d76f6aa51e.zip
openembedded-c5b9544d95a4f2321cf647bd174048d76f6aa51e.tar.gz
openembedded-c5b9544d95a4f2321cf647bd174048d76f6aa51e.tar.bz2
bin/wrapper.sh: fix sed self exec
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--bin/wrapper.sh4
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)" "$@"
}