forked from CocoaPods/CocoaPods-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbundle-env
executable file
·31 lines (27 loc) · 852 Bytes
/
bundle-env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# Clear known env variables that can influence the standalone installation in a bad way.
unset RUBYOPT
unset RUBYLIB
unset GEM_HOME
unset GEM_PATH
unset GEM_CACHE
# Now define env variables that we need for the standalone installation to work and override where
# necessary.
BIN=$(cd "$(dirname "$0")"; pwd)
PREFIX=$(dirname $BIN)
export PATH=$BIN:/usr/bin:/bin:/usr/sbin:/sbin
export PYTHONPATH=$PREFIX/lib/python2.7/site-packages
export GIT_SSL_CAINFO=$PREFIX/share/roots.pem
export GIT_TEMPLATE_DIR=$PREFIX/share/git-core/templates
export GIT_EXEC_PATH=$PREFIX/libexec/git-core
export LANG=en_GB.UTF-8
export LC_CTYPE=UTF-8
export SSL_CERT_FILE=$PREFIX/share/roots.pem
# Ensure these env variables we need are set.
if [ -z "$HOME" ]; then
export HOME=$(cd ~; pwd)
fi
if [ -z "$TERM" ]; then
export TERM=xterm-256color
fi
exec "$@"