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

config/functions: fix bash-4.4 issue, and empty 2nd param behaviour #1896

Merged
merged 1 commit into from
Aug 21, 2017
Merged

config/functions: fix bash-4.4 issue, and empty 2nd param behaviour #1896

merged 1 commit into from
Aug 21, 2017

Conversation

MilhouseVH
Copy link
Contributor

This addresses two issues:

  1. Fixes the issue raised by @InuSasha buildsystem: enable custom colours (or none at all) #1871 (comment)

Apparently bash-4.4 behaves differently to bash-4.3. Splitting the conditions into two tests resolves the issue.

  1. If print_colour CLR_INSTALL "" is ever used then the ${endcolor} wouldn't be output which may not be intended. Therefore, change the test to the number of arguments (there's probably other ways of skinning this cat).

@InuSasha can you confirm this is good for you?

Copy link
Member

@InuSasha InuSasha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works fine

@lrusak lrusak merged commit fb42b77 into LibreELEC:master Aug 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants