Skip to content

Commit

Permalink
Undo #2
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Apr 13, 2022
1 parent 6e97c2b commit 663726e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/conda-stage
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,13 @@ if [[ "${action}" == "stage" ]]; then
fi
mdebug "- Current conda environment: ${CONDA_DEFAULT_ENV}"

## Assert that environment is not already staged
if command -v conda-unpack; then
error "Conda environment is already staged and active: ${CONDA_PREFIX}"
## FIXME: How can one detect if conda-pack is already done?
## https://github.com/HenrikBengtsson/conda-stage/issues/2
if false; then
error "Conda environment is already staged and active: ${CONDA_PREFIX}"
fi
fi

mdebug "- Using conda-stage $(version)"
Expand Down

0 comments on commit 663726e

Please sign in to comment.