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

horusec install.sh: issues with cut and tail command on some linux and mac #1158

Open
smoogie opened this issue Sep 12, 2023 · 0 comments
Open

Comments

@smoogie
Copy link
Contributor

smoogie commented Sep 12, 2023

What would you like to be added:
In installation scripts - replace the long name of parameters for cut and tail with shorthands like -d instead of --delimeter, -f instead of --fields, -n instead of --lines

Why is this needed:
In some machines, there is an issue with installation scripts.
For example on some mac we get error:

cut: illegal option -- -
...

and

tail: illegal option -- -
...

This comes from: cut --delimiter='/' --fields=3 | tail --lines=1

This is due to the versions of cut and tail installed on different systems. For example https://ss64.com/osx/cut.html

To solve the issue, we should replace the long name of parameters with shorthands like -d instead of --delimeter, -f instead of --fields, -n instead of --lines

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