Fix syntax highlighting test update.sh to work on Mac OS
commit51d25e5859171e060eb6edd6a1de758b4bc125ce
authorEthan P <eth-p+git@hidden.email>
dateSun 4 Oct 2020, 00:31 (6 years ago)
parentb853568
tests/syntax-tests/update.sh+3−1
@@ -1,3 +1,5 @@
11#!/bin/bash
22
3−python create_highlighted_versions.py -O highlighted
3+python="python3"
4+if ! command -v python3 &>/dev/null; then python="python"; fi
5+"$python" create_highlighted_versions.py -O highlighted