Skip to content

Commit 08e4d9b

Browse files
authored
Update setup_environment.sh
1 parent d5d392d commit 08e4d9b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

backend/setup_environment.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ create_update_env_file() {
6161

6262
local machine_learning_core_path="../machine_learning_core"
6363
echo -e "${YELLOW}Enter CONDA_SH_PATH (press Enter for default):${NC}"
64-
read -p "(default: $HOME/miniconda3/etc/profile.d/conda.sh): " conda_sh_path
65-
conda_sh_path=${conda_sh_path:-$HOME/miniconda3/etc/profile.d/conda.sh}
64+
read -p "(default: \$HOME/miniconda3/etc/profile.d/conda.sh): " conda_sh_path
65+
conda_sh_path=${conda_sh_path:-\$HOME/miniconda3/etc/profile.d/conda.sh}
6666

6767
if [[ $env_choice == "2" ]]; then
6868
echo -e "${YELLOW}Enter the MACHINE_LEARNING_CORE_PATH for VM (absolute path):${NC}"
69-
read -p "(e.g., $HOME/machine_learning_core on VM): " machine_learning_core_vm_path
70-
machine_learning_core_path="$machine_learning_core_vm_path"
69+
read -p "(e.g., \$HOME/machine_learning_core on VM): " machine_learning_core_vm_path
70+
machine_learning_core_path=${machine_learning_core_vm_path:-\$HOME/machine_learning_core}
7171
fi
7272

7373
echo -e "${YELLOW}Enter HUGGING_FACE_ACCESS_TOKEN:${NC}"
@@ -101,4 +101,4 @@ echo "1. Local"
101101
echo "2. VM"
102102
read -p "Enter your choice (1/2): " env_choice
103103

104-
create_update_env_file "$env_choice"
104+
create_update_env_file "$env_choice"

0 commit comments

Comments
 (0)