Skip to content

Commit

Permalink
bin/cijoe: fixed ENV_FPATH when using alternate CIJ_PKG_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
safl committed Dec 5, 2018
1 parent 865db59 commit 841f8ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/cijoe
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ ENV_NAME=${ENV_FNAME%.*}

if [[ ! -f "$ENV_FPATH" ]]; then
if [[ -f "$HERE/$ENV_FNAME" ]]; then
ENV_FPATH=$HERE/$ENV_FNAME
ENV_FPATH="$HERE/$ENV_FNAME"
elif [[ -f "$CIJ_ENVS/$ENV_FNAME" ]]; then
ENV_FPATH=$CIJ_ENVS/$ENV_FNAME
ENV_FPATH="$CIJ_ENVS/$ENV_FNAME"
elif [[ -f "$CIJ_ROOT/envs/$ENV_FPATH" ]]; then
ENV_FPATH="$CIJ_ROOT/envs/$ENV_FPATH"
else
cij::err "cannot find default ENV_FPATH: '$ENV_FPATH'"
popd
Expand Down

0 comments on commit 841f8ce

Please sign in to comment.