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

telem-seq.sh: Make compatible to busybox sh #180

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SmithChart
Copy link

busybox's sh-implementation is differnt from the normal sh:

In busybox-expr an empty string does not evaluate to int(0).
Calling expr ($SEQ +1) with SEQ="" fails.

This patch works around this behavior by making sure the file
exists.

I left the pipe for stderr around the cat in place to make
sure I do not break any other error cases.

Signed-off-by: Chris Fiege chris@tinyhost.de

busybox's sh-implementation is differnt from the normal sh:

In busybox-expr an empty string does not evaluate to int(0).
Calling `expr ($SEQ +1)` with `SEQ=""` fails.

This patch works around this behavior by making sure the file
exists.

I left the pipe for stderr around the `cat` in place to make
sure I do not break any other error cases.

Signed-off-by: Chris Fiege <chris@tinyhost.de>
@SmithChart
Copy link
Author

pump

What can I do to improve my chances to get this PR merged? :)

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.

1 participant