summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormar77i <mar77i@protonmail.ch>2020-01-27 00:07:32 +0100
committermar77i <mar77i@protonmail.ch>2020-01-27 00:07:32 +0100
commit83355f67124e81bf8d5d4593f27d80ff843b37a3 (patch)
treeac7593be1e48b47bb147ed20879550f7bf4967cc
parente5fda3abe351db847952d4a80b4aa217725cbf46 (diff)
setup_venv: fix env.sh deactivate call.
-rwxr-xr-xmanage.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/manage.sh b/manage.sh
index ea2f99c..da8ec68 100755
--- a/manage.sh
+++ b/manage.sh
@@ -37,8 +37,8 @@ setup_venv() {
python -m venv "${VIRTUAL_ENV}"
if [[ -e env.sh ]]; then
d='${VIRTUAL_ENV}'
- d="[[ -n \"${d}\" && -r \"${d}/../env.sh\" ]] &&"
- d="${d} . \"${d}/../env.sh\" --deactivate"
+ d="[[ -n \"${d}\" && -r \"${d}/../env.sh\" ]] && . \"${d}"
+ d="${d}/../env.sh\" --deactivate"
sed -i -r $'/unset VIRTUAL_ENV/i\\ '"${d}" \
"${VIRTUAL_ENV}/bin/activate"
fi