From 19b345fb97bdb2bb060f279b07d32e48e256f834 Mon Sep 17 00:00:00 2001 From: Quique Llorente Date: Tue, 19 Jun 2018 10:50:00 +0200 Subject: [PATCH] Do a fail fast if there are pip install issues The script quickstart.sh was not failing at the pip install line, adding a check of the rc after the () block and returnig the same rc. Depends-On: I9d561aa2e2f71b8892580950e9664d62f956773d Change-Id: Ib7a46e4c15a93c62bdde66495030e4734728a890 Closes-Bug: 1708986 --- quickstart.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/quickstart.sh b/quickstart.sh index 01bc44189..5275ad373 100755 --- a/quickstart.sh +++ b/quickstart.sh @@ -150,6 +150,11 @@ bootstrap () { fi popd ) + bootstrap_rc=$? + if [ $bootstrap_rc -ne 0 ]; then + return $bootstrap_rc + fi + # In order to do any filesystem operations on the system running ansible (if it has SELinux intalled) # we need the python bindings in the venv. Unfortunately, it is not available on pypi, so we need to # pull it from the system site packages.