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

Switch to using busybox instead of sed. #7

Open
cheako opened this issue Mar 22, 2021 · 0 comments
Open

Switch to using busybox instead of sed. #7

cheako opened this issue Mar 22, 2021 · 0 comments

Comments

@cheako
Copy link
Contributor

cheako commented Mar 22, 2021

I just got to the part when it installs the sed package. I think in most cases awk would be a better fit, but if we are going to be installing a tool for this task it's gotta be busybox. Example:
tunnelInterfaceIP="$(ip -br addr show dev "$tunnelInterface"|busybox awk -F'[ /]+' '{print$3}')"
Also busybox sed... so both needs are covered. In that case we should also target the busybox sh, meaning no more arrays I'd guess.

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