-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbloom_deactivate
More file actions
36 lines (31 loc) · 971 Bytes
/
bloom_deactivate
File metadata and controls
36 lines (31 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "Error: This script must be sourced, not executed."
echo "Usage: source ./bloom_deactivate"
exit 1
fi
if type conda >/dev/null 2>&1; then
source "$(conda info --base)/etc/profile.d/conda.sh" 2>/dev/null || true
fi
if [[ -n "${CONDA_DEFAULT_ENV:-}" ]]; then
conda deactivate 2>/dev/null || true
fi
unset BLOOM_ACTIVE
unset BLOOM_ROOT
unset BLOOM_DEPLOYMENT_CODE
unset DEPLOYMENT_CODE
unset LSMC_DEPLOYMENT_CODE
unset MERIDIAN_ENVIRONMENT
unset MERIDIAN_SANDBOX_PREFIX
unset MERIDIAN_DOMAIN_CODE
unset TAPDB_DOMAIN_CODE
unset TAPDB_OWNER_REPO
unset TAPDB_DOMAIN_REGISTRY_PATH
unset TAPDB_PREFIX_OWNERSHIP_REGISTRY_PATH
unset BLOOM_TAPDB__OWNER_REPO_NAME
unset BLOOM_TAPDB__DOMAIN_CODE
unset BLOOM_TAPDB__DOMAIN_REGISTRY_PATH
unset BLOOM_TAPDB__PREFIX_OWNERSHIP_REGISTRY_PATH
unset BLOOM_TAPDB__CONFIG_PATH
unset BLOOM_COGNITO_APP_NAME
echo "BLOOM LIMS environment deactivated."