exit conditions on wasm build

This commit is contained in:
forest 2021-02-25 18:12:46 -06:00
parent 94395788e4
commit a542b5d296

View File

@ -21,6 +21,9 @@ if [ "$rust_is_installed" == "0" ]; then
if [[ $REPLY =~ ^[Yy]$ ]] if [[ $REPLY =~ ^[Yy]$ ]]
then then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
else
printf "exiting due to no rust compiler"
exit 1
fi fi
fi fi
@ -36,6 +39,7 @@ npm_is_installed="$(which npm | wc -l)"
if [ "$nodejs_is_installed" == "0" ] || [ "$npm_is_installed" == "0" ]; then if [ "$nodejs_is_installed" == "0" ] || [ "$npm_is_installed" == "0" ]; then
printf "nodejs and npm are required for the next step. Please install them manually 😇" printf "nodejs and npm are required for the next step. Please install them manually 😇"
exit 1
fi fi
if [ ! -d node_modules ]; then if [ ! -d node_modules ]; then