Default interpreter to "python" if "python3" doesn't exist

This commit is contained in:
Tim Gunter 2021-04-09 20:01:12 -07:00
parent 50ec03229f
commit bae1d7a894
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
PYTHON=${PYTHON:-python3}
PYTHON=${PYTHON:-$(which python3 python|head -n 1)}
set -e

View File

@ -1,6 +1,6 @@
#!/bin/sh
PYTHON=${PYTHON:-python3}
PYTHON=${PYTHON:-$(which python3 python|head -n 1)}
# Usage info
show_help() {