Rename environment_linux.sh to cmd_linux.sh

This commit is contained in:
oobabooga 2023-04-18 02:29:55 -03:00 committed by GitHub
parent 6d2c72b593
commit 647f7bca36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

12
cmd_linux.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")"
if [[ "$(pwd)" =~ " " ]]; then echo This script relies on Miniconda which can not be silently installed under a path with spaces. && exit; fi
# config
CONDA_ROOT_PREFIX="$(pwd)/installer_files/conda"
INSTALL_ENV_DIR="$(pwd)/installer_files/env"
# activate env
bash --init-file <(echo "source \"$CONDA_ROOT_PREFIX/etc/profile.d/conda.sh\" && conda activate \"$INSTALL_ENV_DIR\"")