Skip to content
Snippets Groups Projects
Commit 69bdca06 authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

fix sub-env for when env file is not present

parent 63cea994
No related branches found
Tags v32
No related merge requests found
...@@ -60,5 +60,9 @@ function deep-rm (){ ...@@ -60,5 +60,9 @@ function deep-rm (){
} }
function sub-env (){ 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
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment