Skip to content

Commit

Permalink
run.sh: replace which with type for consistency with other scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Stilwell <[email protected]>
  • Loading branch information
benemorius committed Sep 8, 2014
1 parent d644928 commit 5fb0875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ EOF
PYTHON="./env/bin/python"
if [ ! -x $PYTHON ]; then
echo "No python executable found at ${PYTHON}"
if which python2 2>/dev/null; then
if type python2 &>/dev/null; then
PYTHON=python2
elif which python 2>/dev/null; then
elif type python &>/dev/null; then
PYTHON=python
else
echo "No python executable found anywhere"
Expand Down

0 comments on commit 5fb0875

Please sign in to comment.