scripts: Ensure non-zero exit code on error

This commit is contained in:
Albert Ou 2019-08-31 01:25:56 -07:00
parent 40a94dd08e
commit 10b708d173
1 changed files with 4 additions and 4 deletions

View File

@ -82,12 +82,12 @@ if [ "$EC2FASTINSTALL" = "true" ]; then
FASTINSTALL=true
echo "Using fast pre-compiled install for riscv-tools"
else
echo "Error: hash of precompiled toolchain doesn't match the riscv-tools submodule hash."
exit
error 'error: hash of precompiled toolchain does not match the riscv-tools submodule hash'
exit -1
fi
else
echo "Error: No precompiled toolchain for esp-tools or other non-native riscv-tools."
exit
error "error: unsupported precompiled toolchain: ${TOOLCHAIN}"
exit -1
fi
fi