Abort if Python3's venv is not available

This commit is contained in:
Anthony Rose 2021-02-20 21:26:59 +00:00
parent d8c5a4bb89
commit 5f19231e01

View file

@ -31,7 +31,7 @@ else
fi fi
if [ ! -x "$HOME/opt/ansible/bin/ansible-playbook" ]; then if [ ! -x "$HOME/opt/ansible/bin/ansible-playbook" ]; then
python3 -m venv "$HOME/opt/ansible" python3 -m venv "$HOME/opt/ansible" || exit 1
fi fi
pushd "$HOME/opt/ansible" pushd "$HOME/opt/ansible"