diff --git a/scripts/bootstrap.bat b/scripts/bootstrap.bat index 5ac5c4dc..2a6d1804 100644 --- a/scripts/bootstrap.bat +++ b/scripts/bootstrap.bat @@ -37,11 +37,11 @@ if "%PACKAGES_TO_INSTALL%" NEQ "" ( mkdir "%MAMBA_ROOT_PREFIX%" call curl -Lk "%MICROMAMBA_DOWNLOAD_URL%" > "%MAMBA_ROOT_PREFIX%\micromamba.exe" - if "%ERRORLEVEL%" NEQ "0" ( - echo "There was a problem downloading micromamba. Cannot continue." - pause - exit /b - ) + if "%ERRORLEVEL%" NEQ "0" ( + echo "There was a problem downloading micromamba. Cannot continue." + pause + exit /b + ) @rem test the mamba binary echo Micromamba version: diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index d0b1312b..6a929133 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -52,13 +52,14 @@ if [ "$PACKAGES_TO_INSTALL" != "" ]; then mkdir -p "$MAMBA_ROOT_PREFIX" curl -L "$MICROMAMBA_DOWNLOAD_URL" | tar -xvj bin/micromamba -O > "$MAMBA_ROOT_PREFIX/micromamba" - if [ "$?" != "0" ]; then - echo - echo "EE micromamba download failed" - echo "EE If the lines above contain 'bzip2: Cannot exec', your system doesn't have bzip2 installed" - echo "EE If there are network errors, please check your internet setup" - fail "micromamba download failed" - fi + + if [ "$?" != "0" ]; then + echo + echo "EE micromamba download failed" + echo "EE If the lines above contain 'bzip2: Cannot exec', your system doesn't have bzip2 installed" + echo "EE If there are network errors, please check your internet setup" + fail "micromamba download failed" + fi chmod u+x "$MAMBA_ROOT_PREFIX/micromamba"