diff options
Diffstat (limited to 'meta/files/toolchain-shar-extract.sh')
-rw-r--r-- | meta/files/toolchain-shar-extract.sh | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh index 4c4b4deb4c..2e0fe94963 100644 --- a/meta/files/toolchain-shar-extract.sh +++ b/meta/files/toolchain-shar-extract.sh | |||
@@ -1,13 +1,8 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | [ -z "$ENVCLEANED" ] && exec /usr/bin/env -i ENVCLEANED=1 HOME="$HOME" \ | 3 | export LC_ALL=en_US.UTF-8 |
4 | LC_ALL=en_US.UTF-8 \ | 4 | # Remove invalid PATH elements first (maybe from a previously setup toolchain now deleted |
5 | TERM=$TERM \ | 5 | PATH=`python3 -c 'import os; print(":".join(e for e in os.environ["PATH"].split(":") if os.path.exists(e)))'` |
6 | ICECC_PATH="$ICECC_PATH" \ | ||
7 | http_proxy="$http_proxy" https_proxy="$https_proxy" ftp_proxy="$ftp_proxy" \ | ||
8 | no_proxy="$no_proxy" all_proxy="$all_proxy" GIT_PROXY_COMMAND="$GIT_PROXY_COMMAND" "$0" "$@" | ||
9 | [ -f /etc/environment ] && . /etc/environment | ||
10 | export PATH=`echo "$PATH" | sed -e 's/:\.//' -e 's/::/:/'` | ||
11 | 6 | ||
12 | tweakpath () { | 7 | tweakpath () { |
13 | case ":${PATH}:" in | 8 | case ":${PATH}:" in |