Skip to content

Commit 9725d15

Browse files
dahliaclaude
andcommitted
Fix POSIX shell compatibility in check-versions task
Use POSIX-compatible `[ ]` and `=` instead of bash-specific `[[ ]]` and `==` to ensure the task works in environments where the default shell is sh rather than bash. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a0eb808 commit 9725d15

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ jobs:
241241
echo version="$(jq -r .version deno.json)" >> $GITHUB_OUTPUT
242242
echo short_version="$(jq -r .version deno.json | sed 's/[+].*//')" >> $GITHUB_OUTPUT
243243
working-directory: ${{ github.workspace }}/packages/fedify/
244-
- run: mise run check-versions -- --fix
244+
- run: mise run check-versions --fix
245245
- if: github.ref_type == 'tag'
246246
run: |
247247
set -ex

mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ run = "deno fmt --check && deno lint && deno check --unstable-temporal $(deno ev
2828
description = "Check that all package versions are consistent across the monorepo"
2929
usage = 'flag "--fix" help="Automatically fix version mismatches"'
3030
run = '''
31-
if [[ "${usage_fix}" == "true" ]]; then
31+
if [ "${usage_fix}" = "true" ]; then
3232
deno run --allow-read --allow-write scripts/check_versions.ts --fix
3333
else
3434
deno task check-versions

0 commit comments

Comments
 (0)