From 598eb1aa1367f4787a03454847eb5e863cf05fe0 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 3 Mar 2024 02:43:01 +0900 Subject: [PATCH] tidy: Fix typos --- tools/tidy.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/tidy.sh b/tools/tidy.sh index 95ecbe21..6389df8c 100755 --- a/tools/tidy.sh +++ b/tools/tidy.sh @@ -207,15 +207,15 @@ if [[ -n "$(git ls-files '*.yml' '*.js' '*.json')" ]]; then info "checking GitHub workflows" if type -P jq &>/dev/null; then if type -P python3 &>/dev/null || type -P python &>/dev/null; then - py_prefix='' + py_suffix='' if type -P python3 &>/dev/null; then - py_prefix='3' + py_suffix='3' fi if [[ ! -d .venv ]]; then - python"${py_prefix}" -m venv .venv + python"${py_suffix}" -m venv .venv fi if [[ ! -e .venv/bin/yq ]]; then - .venv/bin/pip"${py_prefix}" install yq + .venv/bin/pip"${py_suffix}" install yq fi for workflow in .github/workflows/*.yml; do # The top-level permissions must be weak as they are referenced by all jobs.