Skip to content

Commit 371f80c

Browse files
committed
Detect complete absense of Python
1 parent f617572 commit 371f80c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ansible-cmdb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ PY_BIN=$(which python)
99
if [ -z "$PY_BIN" ]; then
1010
PY_BIN=$(which python3)
1111
fi
12+
if [ -z "$PY_BIN" ]; then
13+
echo "No python found. Aborting"
14+
exit 1
15+
fi
16+
1217

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

0 commit comments

Comments
 (0)