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

Use correct sh syntax for string comparison #39619

Merged
merged 1 commit into from
Apr 17, 2020

Conversation

wapcaplet
Copy link
Contributor

@wapcaplet wapcaplet commented Apr 17, 2020

Summary

SUMMARY: none

Purpose of change

To make the lang/compile_mo.sh script compatible with its interpreter

Without this, I was getting the following syntax error every time I ran the script: lang/compile_mo.sh: 27: [: es_ES: unexpected operator

Describe the solution

Change the equality comparison to use = instead of == (which is not available in sh or in dash which is the default system shell in Ubuntu).

Testing

Script runs without syntax errors

Additional Context

https://stackoverflow.com/questions/10849297/compare-a-string-using-sh-shell

On Ubuntu, dash has been the default system interpreter since version 6.10 (released in 2006).

@ZhilkinSerg ZhilkinSerg added Code: Build Issues regarding different builds and build environments Translation I18n labels Apr 17, 2020
@ZhilkinSerg ZhilkinSerg merged commit 786fa8d into CleverRaven:master Apr 17, 2020
@wapcaplet wapcaplet deleted the fix-lang-compiler branch April 25, 2020 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Build Issues regarding different builds and build environments Translation I18n
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants