|
@@ -1,13 +1,8 @@
|
|
|
#!/bin/sh
|
|
|
|
|
|
-[ -z "$ENVCLEANED" ] && exec /usr/bin/env -i ENVCLEANED=1 HOME="$HOME" \
|
|
|
- LC_ALL=en_US.UTF-8 \
|
|
|
- TERM=$TERM \
|
|
|
- ICECC_PATH="$ICECC_PATH" \
|
|
|
- http_proxy="$http_proxy" https_proxy="$https_proxy" ftp_proxy="$ftp_proxy" \
|
|
|
- no_proxy="$no_proxy" all_proxy="$all_proxy" GIT_PROXY_COMMAND="$GIT_PROXY_COMMAND" "$0" "$@"
|
|
|
-[ -f /etc/environment ] && . /etc/environment
|
|
|
-export PATH=`echo "$PATH" | sed -e 's/:\.//' -e 's/::/:/'`
|
|
|
+export LC_ALL=en_US.UTF-8
|
|
|
+# Remove invalid PATH elements first (maybe from a previously setup toolchain now deleted
|
|
|
+PATH=`python3 -c 'import os; print(":".join(e for e in os.environ["PATH"].split(":") if os.path.exists(e)))'`
|
|
|
|
|
|
tweakpath () {
|
|
|
case ":${PATH}:" in
|