Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove set -u on yarn_install.sh to allow it to run on macos default bash#1930

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
spikecurtis merged 1 commit intomainfromspike/yarn_install_setu
May 31, 2022

Conversation

spikecurtis
Copy link
Contributor

On zsh (default on macos) yarn_install.sh fails like:

./scripts/yarn_install.sh: line 41: yarn_flags[*]: unbound variable

It seems that zsh is refusing to expand an empty array withset -u enabled, while bash happily does so. We could add an explicit if test, but that seems complex for such a short script.

Signed-off-by: Spike Curtis <spike@coder.com>
@spikecurtisspikecurtis requested a review froma teamMay 31, 2022 20:39
@deansheather
Copy link
Member

The script is using bash as it has the bang at the top. Interesting that there's differences between the two OS's bash installs

@dwahler
Copy link
Contributor

Looks like this is caused by an old bash version. The behaviorchanged in bash-4.4, but my Mac is still on version 3.2.57.

@spikecurtisspikecurtis merged commit4b0ed06 intomainMay 31, 2022
@spikecurtisspikecurtis deleted the spike/yarn_install_setu branchMay 31, 2022 20:50
@spikecurtisspikecurtis changed the titleRemove set -u on yarn_install.sh to allow it to run on zshRemove set -u on yarn_install.sh to allow it to run on macos default bashMay 31, 2022
kylecarbs pushed a commit that referenced this pull requestJun 10, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@deansheatherdeansheatherdeansheather approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@spikecurtis@deansheather@dwahler

[8]ページ先頭

©2009-2025 Movatter.jp