Skip to content

Commit

Permalink
Detect complete absense of Python
Browse files Browse the repository at this point in the history
  • Loading branch information
fboender committed Mar 3, 2018
1 parent f617572 commit 371f80c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ansible-cmdb
Expand Up @@ -9,6 +9,11 @@ PY_BIN=$(which python)
if [ -z "$PY_BIN" ]; then
PY_BIN=$(which python3)
fi
if [ -z "$PY_BIN" ]; then
echo "No python found. Aborting"
exit 1
fi


# Verify Python version
PY_VMAJOR=$($PY_BIN -c "import sys; print(sys.version_info.major)")
Expand Down

0 comments on commit 371f80c

Please sign in to comment.