]> code.ossystems Code Review - openembedded-core.git/commitdiff
toolchain-shar-extract.sh: fix ~ not working in path
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 11 Dec 2015 03:11:48 +0000 (16:11 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Dec 2015 11:22:33 +0000 (11:22 +0000)
Fix a second regression in the extensible SDK installation caused by
OE-Core revision 6d2074d477596971dc52027dd87b02af7f39138d - the HOME
environment variable was being cleared, thus using ~/ in the install
path (which is in the default path for the extensible SDK) resulted in a
directory named '~' being created in the current directory.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/files/toolchain-shar-extract.sh

index 606a44e2f97589b5c429a0741c797dc29f5c6948..de8c66934eb693d04fa5065d354f355268944c12 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-[ -z "$ENVCLEANED" ] && exec /usr/bin/env -i ENVCLEANED=1 "$0" "$@"
+[ -z "$ENVCLEANED" ] && exec /usr/bin/env -i ENVCLEANED=1 HOME="$HOME" "$0" "$@"
 [ -f /etc/environment ] && . /etc/environment
 export PATH=`echo "$PATH" | sed -e 's/:\.//' -e 's/::/:/'`