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

Add parameters validation to builder.sh script #24

Closed
davidcr01 opened this issue Aug 19, 2024 · 0 comments · Fixed by #142
Closed

Add parameters validation to builder.sh script #24

davidcr01 opened this issue Aug 19, 2024 · 0 comments · Fixed by #142
Assignees
Labels
level/task Task issue type/bug Bug issue

Comments

@davidcr01
Copy link
Contributor

davidcr01 commented Aug 19, 2024

Target version Related issue Related PR/dev branch
5.0.0 wazuh/wazuh-automation#1319

Description

Related: #19

The builder.sh script builds the different scripts of the Wazuh installation assistant repository:

echo -e "DESCRIPTION"
echo -e "        -i,  --installer"
echo -e "                Builds the installation assistant (wazuh-install.sh)"
echo -e ""
echo -e "        -c,  --cert-tool"
echo -e "                Builds the certificate tool (wazuh-certs-tool.sh)"
echo -e ""
echo -e "        -d [pre-release|staging],  --development"
echo -e "                Use development repositories. By default it uses the pre-release package repository. If staging is specified, it will use that repository."
echo -e ""
echo -e "        -p,  --password-tool"
echo -e "                Builds the password tool (wazuh-passwords-tool.sh)"
echo -e ""
echo -e "        -h,  --help"
echo -e "                Shows help."

I have discovered that, if no parameter is passed to the builder.sh script, the script does not print the help (it does not perform any operation either).

bash builder.sh 

Important

It would be desirable that, if no argument is passed to this script, the help will be printed, in order to follow the script usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/bug Bug issue
Projects
Status: Done
2 participants