Skip to content

Commit

Permalink
better output if py3 isn't there (charlesnicholson#222)
Browse files Browse the repository at this point in the history
* better output if py3.9 isn't there

* don't require 3.9, any 3 will do, i think?
  • Loading branch information
charlesnicholson authored Aug 30, 2022
1 parent 06b7f4b commit 1ea58a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions b
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1ea58a4

Please sign in to comment.