Early exit if there is any errors

This commit is contained in:
Lzu Tao 2019-10-15 00:51:41 +07:00
parent 02dcd629ae
commit f4ea5251cb

View file

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
# Set up the appropriate rustc toolchain # Set up the appropriate rustc toolchain
set -e
cd "$(dirname "$0")" || exit cd "$(dirname "$0")" || exit
if ! command -v rustup-toolchain-install-master > /dev/null; then if ! command -v rustup-toolchain-install-master > /dev/null; then