From 632fcfefcb8844a34c1b4ec93cc807003230f79d Mon Sep 17 00:00:00 2001 From: Bryce Larson Date: Wed, 28 Aug 2019 20:40:07 -0600 Subject: [PATCH] fix issue #1358 --- bootstrap-salt.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 9192026..ecf90f1 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -2276,8 +2276,10 @@ __overwriteconfig() { tempfile="/tmp/salt-config-$$" fi + if [ -n "$_PY_EXE" ]; then + good_python="$_PY_EXE" # If python does not have yaml installed we're on Arch and should use python2 - if python -c "import yaml" 2> /dev/null; then + elif python -c "import yaml" 2> /dev/null; then good_python=python else good_python=python2