From 56311883e132daaed16bc35a7a01e49c73e7d5af Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Mon, 22 Mar 2021 22:39:11 +0000 Subject: [PATCH] Fix check for directory --- ansible-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible-setup.sh b/ansible-setup.sh index f75c058..4257587 100755 --- a/ansible-setup.sh +++ b/ansible-setup.sh @@ -38,7 +38,7 @@ else echo "python3 found: $py3cmd" fi -if [ ! -x "$HOME/opt/ansible/bin/ansible-playbook" ]; then +if [ ! -d "$install_path" ]; then python3 -m venv "$install_path" || exit 1 fi