From 74564fe8d0da13b2daba3de310c06e1888d0812d Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Mon, 4 Mar 2024 08:11:03 -0800 Subject: [PATCH] One-click installer: delete the Miniconda installer after completion --- start_linux.sh | 3 +++ start_macos.sh | 3 +++ start_windows.bat | 3 +++ wsl.sh | 3 +++ 4 files changed, 12 insertions(+) diff --git a/start_linux.sh b/start_linux.sh index 85638a5e..5620c831 100755 --- a/start_linux.sh +++ b/start_linux.sh @@ -39,6 +39,9 @@ if [ "$conda_exists" == "F" ]; then # test the conda binary echo "Miniconda version:" "$CONDA_ROOT_PREFIX/bin/conda" --version + + # delete the Miniconda installer + rm "$INSTALL_DIR/miniconda_installer.sh" fi # create the installer env diff --git a/start_macos.sh b/start_macos.sh index b30bc4c6..6761f531 100755 --- a/start_macos.sh +++ b/start_macos.sh @@ -39,6 +39,9 @@ if [ "$conda_exists" == "F" ]; then # test the conda binary echo "Miniconda version:" "$CONDA_ROOT_PREFIX/bin/conda" --version + + # delete the Miniconda installer + rm "$INSTALL_DIR/miniconda_installer.sh" fi # create the installer env diff --git a/start_windows.bat b/start_windows.bat index 7c437b60..f607e518 100755 --- a/start_windows.bat +++ b/start_windows.bat @@ -45,6 +45,9 @@ if "%conda_exists%" == "F" ( @rem test the conda binary echo Miniconda version: call "%CONDA_ROOT_PREFIX%\_conda.exe" --version || ( echo. && echo Miniconda not found. && goto end ) + + @rem delete the Miniconda installer + del "%INSTALL_DIR%\miniconda_installer.exe" ) @rem create the installer env diff --git a/wsl.sh b/wsl.sh index c94f3e8c..0b744455 100755 --- a/wsl.sh +++ b/wsl.sh @@ -66,6 +66,9 @@ if [ "$conda_exists" == "F" ]; then # test the conda binary echo "Miniconda version:" "$CONDA_ROOT_PREFIX/bin/conda" --version + + # delete the Miniconda installer + rm "$INSTALL_DIR/miniconda_installer.sh" fi # create the installer env