Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make rfc.sh work on macos #412

Merged
merged 2 commits into from
Feb 1, 2025
Merged

Make rfc.sh work on macos #412

merged 2 commits into from
Feb 1, 2025

Conversation

gachikuku
Copy link
Contributor

Also for some reason when running r./share/adapters/rfc.sh previously, I was getting the following error.

./share/adapters/rfc.sh: line 28: ${1,,}: bad substitution

I don't know the reason why, but this PR fixes this problem as well.
Did not test it on linux so please do test.

So this PR accomplishes the following:

  1. Fix bad substitution error.
  2. Make rfc.sh work on macos as well, because of different verions of sed. One being gnu's and the other one being bsd's

Thanks.

abitrolly added a commit that referenced this pull request Feb 1, 2025
@abitrolly
Copy link
Collaborator

share/adapters/rfc.sh Outdated Show resolved Hide resolved
@abitrolly abitrolly merged commit 139f8c2 into chubin:master Feb 1, 2025
1 of 3 checks passed
@abitrolly
Copy link
Collaborator

I don't know the reason why, but this PR fixes this problem as well.

That's because MacOS uses Bash 3, and this syntax was from Bash 4.

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.

2 participants