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

Bourne shells are very whitespace sensitive. Adding or removing spaces can drastically alter the meaning of a script #14513

Open
philipjonsen opened this issue Sep 20, 2024 · 0 comments

Comments

@philipjonsen
Copy link

Description

Bourne shells are very whitespace sensitive. Adding or removing spaces can drastically alter the meaning of a script. In these cases, you're missing a space at the position indicated.

Problematic code:

if [ "$STUFF" = ""]; then

Correct code:

if [ "$STUFF" = "" ]; then

Fix:
You need a space before the ] here:
https://github.com/chainlink/blob/develop/core/scripts/install-protoc.sh#L27-L27

c0rv4x added a commit to c0rv4x/chainlink that referenced this issue Oct 2, 2024
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

No branches or pull requests

1 participant