aboutsummaryrefslogtreecommitdiffstats
path: root/bin/wrapper.sh
diff options
context:
space:
mode:
authorCliff Brake <cbrake@bec-systems.com>2010-11-12 00:00:20 -0500
committerCliff Brake <cbrake@bec-systems.com>2010-11-12 00:00:20 -0500
commit3c6efe8f8abc16668ca5e9cdf7a46665dac87172 (patch)
tree642c13416b99e80f0871cdc6668e832e635dfb48 /bin/wrapper.sh
parentc400c874f2ac9233b8a43a73309b6e7907289c54 (diff)
parent13fbe7253c95881ede787004a4c3a1c31502e5c6 (diff)
downloadopenembedded-3c6efe8f8abc16668ca5e9cdf7a46665dac87172.tar.gz
Merge branch 'master' into testing-nexttested_2010-11-12testing
Diffstat (limited to 'bin/wrapper.sh')
-rw-r--r--bin/wrapper.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/wrapper.sh b/bin/wrapper.sh
index 3a93475b7f..d29d5b9c07 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)" "$@"
}