From bae1d7a8948b223c31c4cc149a5e1643db1f874a Mon Sep 17 00:00:00 2001 From: Tim Gunter Date: Fri, 9 Apr 2021 20:01:12 -0700 Subject: [PATCH] Default interpreter to "python" if "python3" doesn't exist --- bin/device-install.sh | 2 +- bin/device-update.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/device-install.sh b/bin/device-install.sh index 3b1bd50f..37a6f781 100755 --- a/bin/device-install.sh +++ b/bin/device-install.sh @@ -1,6 +1,6 @@ #!/bin/sh -PYTHON=${PYTHON:-python3} +PYTHON=${PYTHON:-$(which python3 python|head -n 1)} set -e diff --git a/bin/device-update.sh b/bin/device-update.sh index 98eff9d1..6f8aa0a6 100755 --- a/bin/device-update.sh +++ b/bin/device-update.sh @@ -1,6 +1,6 @@ #!/bin/sh -PYTHON=${PYTHON:-python3} +PYTHON=${PYTHON:-$(which python3 python|head -n 1)} # Usage info show_help() {