From 5f19231e01fc4642e54e2241c7e91ba84e1a5c73 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sat, 20 Feb 2021 21:26:59 +0000 Subject: [PATCH] Abort if Python3's venv is not available --- ansible-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible-setup.sh b/ansible-setup.sh index 59cc96b..32525f4 100755 --- a/ansible-setup.sh +++ b/ansible-setup.sh @@ -31,7 +31,7 @@ else fi if [ ! -x "$HOME/opt/ansible/bin/ansible-playbook" ]; then - python3 -m venv "$HOME/opt/ansible" + python3 -m venv "$HOME/opt/ansible" || exit 1 fi pushd "$HOME/opt/ansible"