Abort make if scripts/install.sh fails

This commit is contained in:
Michael Vines
2018-12-11 15:20:40 -08:00
parent 17f1f40140
commit 54fb4e370c
2 changed files with 14 additions and 9 deletions

View File

@ -47,10 +47,11 @@ if [[ ! -f llvm-native-$machine-$version.md ]]; then
echo "https://github.com/solana-labs/llvm-builder/releases/tag/$version" > ../llvm-native-$machine-$version.md
)
# shellcheck disable=SC2181
if [[ $? -ne 0 ]]; then
exitcode=$?
if [[ $exitcode -ne 0 ]]; then
rm -rf llvm-native
exit 1
fi
fi
exit 0