Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(scripts): add cross-platform sed compatibility for bump-version.sh#4

Merged
iohub merged 1 commit into
mainfrom
beta-0610
Jun 10, 2026
Merged

fix(scripts): add cross-platform sed compatibility for bump-version.sh#4
iohub merged 1 commit into
mainfrom
beta-0610

Conversation

@iohub

@iohub iohub commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Detect the operating system via linux-gnu and dynamically set the SED_INPLACE variable to handle differences in sed -i syntax between macOS (requires -i '') and Linux (requires -i).

Previously, the script hardcoded sed -i '' which only worked on macOS, causing failures when run on Linux. This change replaces all four occurrences with the platform-adaptive sed "${SED_INPLACE[@]}" pattern, making the script compatible with both macOS and Linux environments.

Detect the operating system via `linux-gnu` and dynamically set the
`SED_INPLACE` variable to handle differences in `sed -i` syntax between
macOS (requires `-i ''`) and Linux (requires `-i`).

Previously, the script hardcoded `sed -i ''` which only worked on macOS,
causing failures when run on Linux. This change replaces all four
occurrences with the platform-adaptive `sed "${SED_INPLACE[@]}"` pattern,
making the script compatible with both macOS and Linux environments.
@iohub iohub merged commit f11acd1 into main Jun 10, 2026
@iohub iohub deleted the beta-0610 branch June 24, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant