Exit verify-ios-env immediately on error

If one of the called scripts fails, e.g. because some tooling is missing,
it would still print the "Looks good" message, which is confusing.
Now it just error-exits if one of the called scripts error-exits (which
btw prints an error message and if that's the last thing printed its
more noticable)
This commit is contained in:
Jan-Erik Rediger 2021-09-15 10:14:46 +02:00
Родитель 07a7f542c3
Коммит 11089dbf45
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -4,6 +4,8 @@
#
# This file should be used via `./libs/verify-ios-environment.sh`.
set -e
if [[ ! -f "$(pwd)/libs/build-all.sh" ]]; then
echo "ERROR: verify-ios-environment.sh should be run from the root directory of the repo"
exit 1