mirror of
https://github.com/sequentialread/pow-captcha.git
synced 2025-06-26 08:12:29 +00:00
exit conditions on wasm build
This commit is contained in:
parent
94395788e4
commit
a542b5d296
@ -21,6 +21,9 @@ if [ "$rust_is_installed" == "0" ]; then
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||
else
|
||||
printf "exiting due to no rust compiler"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -36,6 +39,7 @@ npm_is_installed="$(which npm | wc -l)"
|
||||
|
||||
if [ "$nodejs_is_installed" == "0" ] || [ "$npm_is_installed" == "0" ]; then
|
||||
printf "nodejs and npm are required for the next step. Please install them manually 😇"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d node_modules ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user