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

This commit is contained in:
Tim Gunter committed 2021-04-09 20:01:12 -07:00
1 parent 50ec03229f
commit bae1d7a894
2 files changed
+2 -2

No files matched your search

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