From f4ea5251cb0205ca0a3ed2ac5eb295ec6f7f031c Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Tue, 15 Oct 2019 00:51:41 +0700 Subject: [PATCH] Early exit if there is any errors --- setup-toolchain.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup-toolchain.sh b/setup-toolchain.sh index f2bf291f0..b83116606 100755 --- a/setup-toolchain.sh +++ b/setup-toolchain.sh @@ -1,6 +1,8 @@ #!/bin/bash # Set up the appropriate rustc toolchain +set -e + cd "$(dirname "$0")" || exit if ! command -v rustup-toolchain-install-master > /dev/null; then