One-click installer: delete the Miniconda installer after completion

This commit is contained in:
oobabooga 2024-03-04 08:11:03 -08:00
parent dc2dd5b9d8
commit 74564fe8d0
4 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

3
wsl.sh
View File

@ -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