From 316fcad8be9fda4a68052384477b521f3bc90ab5 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 8 Jun 2021 14:42:02 +0100 Subject: [PATCH] Exit if python3 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 060680c..68dec30 100755 --- a/ansible-setup.sh +++ b/ansible-setup.sh @@ -33,7 +33,7 @@ create_link () { py3cmd="$(command -v python3)" if [ ! -x "$py3cmd" ]; then echo "python3 not found" - return 1 + exit 1 else echo "python3 found: $py3cmd" fi