From 1ea58a4250deff1a14aae575fa4008cb57c666d9 Mon Sep 17 00:00:00 2001 From: Charles Nicholson Date: Tue, 30 Aug 2022 13:06:50 -0400 Subject: [PATCH] better output if py3 isn't there (#222) * better output if py3.9 isn't there * don't require 3.9, any 3 will do, i think? --- b | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/b b/b index 0e2d300b..b0e6ba47 100755 --- a/b +++ b/b @@ -1,8 +1,9 @@ #!/usr/bin/env bash set -euo pipefail -if command -v python3 &>/dev/null; then - python3 build.py "$@" +PYTHON3=$(command -v python3 || true) +if [[ -x "$PYTHON3" ]]; then + "$PYTHON3" build.py "$@" else echo Python3 is required to build nanoprintf tests. fi