Skip to content

Commit

Permalink
tidy: Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Mar 2, 2024
1 parent fcdd50a commit 598eb1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 598eb1a

Please sign in to comment.