aboutsummaryrefslogtreecommitdiff
path: root/src/common-utils/install.sh
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-09-06 23:50:11 +0300
committerGitHub <noreply@github.com>2022-09-06 23:50:11 +0300
commita5fbdab3c096152dd3a318c0c23da9465815aa69 (patch)
tree30a1709f45c5351917864a7fd5c05ad782744b0c /src/common-utils/install.sh
parentd8ee2e8cf193bac39d9f31003f18d90b16dc969e (diff)
fix bug - Debian / Ubuntu base conda-notice.txt error (#135)
* fix bug * move config * fix tests
Diffstat (limited to 'src/common-utils/install.sh')
-rwxr-xr-xsrc/common-utils/install.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/common-utils/install.sh b/src/common-utils/install.sh
index 46e285b..0a62569 100755
--- a/src/common-utils/install.sh
+++ b/src/common-utils/install.sh
@@ -448,22 +448,4 @@ echo -e "\
RC_SNIPPET_ALREADY_ADDED=${RC_SNIPPET_ALREADY_ADDED}\n\
ZSH_ALREADY_INSTALLED=${ZSH_ALREADY_INSTALLED}" > "${MARKER_FILE}"
-# Display a notice on conda when not running in GitHub Codespaces
-cat << 'EOF' > ${DEV_CONTAINERS_DIR}/conda-notice.txt
-When using "conda" from outside of GitHub Codespaces, note the Anaconda repository contains
-restrictions on commercial use that may impact certain organizations. See https://aka.ms/ghcs-conda
-
-EOF
-
-notice_script="$(cat << 'EOF'
-if [ -t 1 ] && [ "${IGNORE_NOTICE}" != "true" ] && [ "${TERM_PROGRAM}" = "vscode" ] && [ "${CODESPACES}" != "true" ] && [ ! -f "$HOME/.config/vscode-dev-containers/conda-notice-already-displayed" ]; then
- cat "${DEV_CONTAINERS_DIR}/conda-notice.txt"
- mkdir -p "$HOME/.config/vscode-dev-containers"
- ((sleep 10s; touch "$HOME/.config/vscode-dev-containers/conda-notice-already-displayed") &)
-fi
-EOF
-)"
-
-echo "${notice_script}" | tee -a /etc/bash.bashrc >> /etc/zsh/zshrc
-
echo "Done!"