ZupIT / horusec

Horusec is an open source tool that improves identification of vulnerabilities in your project with just one command.
https://horusec.io/
Apache License 2.0
1.15k stars 189 forks source link

use short arguments in install script #1158 #1159

Closed smoogie closed 1 month ago

smoogie commented 1 year ago

- What I did Fix for https://github.com/ZupIT/horusec/issues/1158 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

- How to verify it You can test it by running install.sh script

- Description for the changelog support different releases of cut and tail in install.sh