mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
fix sub-env for when env file is not present
This commit is contained in:
@@ -60,5 +60,9 @@ function deep-rm (){
|
||||
}
|
||||
|
||||
function sub-env (){
|
||||
(export $(egrep -v '^(GIT_DIR|PYTHONHOME|PYTHONPATH|LD_LIBRARY_PATH|LIBRARY_PATH|PATH)' $ENV_FILE); $1)
|
||||
if [[ -f $ENV_FILE ]]; then
|
||||
(export $(egrep -v '^(GIT_DIR|PYTHONHOME|PYTHONPATH|LD_LIBRARY_PATH|LIBRARY_PATH|PATH)' -f $ENV_FILE); $1)
|
||||
else
|
||||
$1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user