Skip to content

Commit a1baeec

Browse files
authored
Merge pull request #135 from jsimonrichard/check_python_executables
Check python executables
2 parents 03b4279 + 240b700 commit a1baeec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/argparse.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
# MIT License - Copyright (c) 2015 Noah Hoffman
1414

1515
# Get python executable
16-
if which python; then
16+
if which python > /dev/null; then
1717
PYTHON=$(which python)
18-
elif which python3; then
18+
elif which python3 > /dev/null; then
1919
PYTHON=$(which python3)
2020
else
2121
echo "No python 3 executable found"

0 commit comments

Comments
 (0)