Tabs to spaces in bootstrap scripts

This commit is contained in:
cmdr2 2022-11-12 12:47:39 +05:30
parent d1c9db874f
commit a7fde73df4
2 changed files with 13 additions and 12 deletions

View File

@ -37,11 +37,11 @@ if "%PACKAGES_TO_INSTALL%" NEQ "" (
mkdir "%MAMBA_ROOT_PREFIX%" mkdir "%MAMBA_ROOT_PREFIX%"
call curl -Lk "%MICROMAMBA_DOWNLOAD_URL%" > "%MAMBA_ROOT_PREFIX%\micromamba.exe" call curl -Lk "%MICROMAMBA_DOWNLOAD_URL%" > "%MAMBA_ROOT_PREFIX%\micromamba.exe"
if "%ERRORLEVEL%" NEQ "0" ( if "%ERRORLEVEL%" NEQ "0" (
echo "There was a problem downloading micromamba. Cannot continue." echo "There was a problem downloading micromamba. Cannot continue."
pause pause
exit /b exit /b
) )
@rem test the mamba binary @rem test the mamba binary
echo Micromamba version: echo Micromamba version:

View File

@ -52,13 +52,14 @@ if [ "$PACKAGES_TO_INSTALL" != "" ]; then
mkdir -p "$MAMBA_ROOT_PREFIX" mkdir -p "$MAMBA_ROOT_PREFIX"
curl -L "$MICROMAMBA_DOWNLOAD_URL" | tar -xvj bin/micromamba -O > "$MAMBA_ROOT_PREFIX/micromamba" curl -L "$MICROMAMBA_DOWNLOAD_URL" | tar -xvj bin/micromamba -O > "$MAMBA_ROOT_PREFIX/micromamba"
if [ "$?" != "0" ]; then
echo if [ "$?" != "0" ]; then
echo "EE micromamba download failed" echo
echo "EE If the lines above contain 'bzip2: Cannot exec', your system doesn't have bzip2 installed" echo "EE micromamba download failed"
echo "EE If there are network errors, please check your internet setup" echo "EE If the lines above contain 'bzip2: Cannot exec', your system doesn't have bzip2 installed"
fail "micromamba download failed" echo "EE If there are network errors, please check your internet setup"
fi fail "micromamba download failed"
fi
chmod u+x "$MAMBA_ROOT_PREFIX/micromamba" chmod u+x "$MAMBA_ROOT_PREFIX/micromamba"