Skip to content

Commit

Permalink
Update loader to load only if file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonRomano committed Oct 21, 2016
1 parent 17ffcac commit d86468b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/loader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
# Loads the current environment file
##################################################
Env__load(){
source $(Env__get_filename)
local to_load="$Ash__CALL_DIRECTORY/$(Env__get_filename)"
if [[ -f "$to_load" ]]; then
source "$to_load"
fi
}

0 comments on commit d86468b

Please sign in to comment.