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

fix if-expression for user-id check #398

Merged
merged 1 commit into from
Dec 22, 2021
Merged

fix if-expression for user-id check #398

merged 1 commit into from
Dec 22, 2021

Conversation

4ch1m
Copy link
Contributor

@4ch1m 4ch1m commented Dec 22, 2021

Hi there,

If run via "/bin/sh" (instead of "/bin/bash") the first if-expression of that script will always fail with...

./install-coap-client.sh: 3: [: Illegal number: 

... because you're comparing a string with an integer.

$(id -u) should be used instead.

Thanks.

@ggravlingen
Copy link
Member

Thanks!

@ggravlingen ggravlingen merged commit ad9b70f into home-assistant-libs:master Dec 22, 2021
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