scripts: Ensure non-zero exit code on error
This commit is contained in:
@@ -82,12 +82,12 @@ if [ "$EC2FASTINSTALL" = "true" ]; then
|
|||||||
FASTINSTALL=true
|
FASTINSTALL=true
|
||||||
echo "Using fast pre-compiled install for riscv-tools"
|
echo "Using fast pre-compiled install for riscv-tools"
|
||||||
else
|
else
|
||||||
echo "Error: hash of precompiled toolchain doesn't match the riscv-tools submodule hash."
|
error 'error: hash of precompiled toolchain does not match the riscv-tools submodule hash'
|
||||||
exit
|
exit -1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Error: No precompiled toolchain for esp-tools or other non-native riscv-tools."
|
error "error: unsupported precompiled toolchain: ${TOOLCHAIN}"
|
||||||
exit
|
exit -1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user