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

Refactor helper script to create a Capsule user #454

Merged
merged 2 commits into from
Oct 22, 2021

Conversation

maxgio92
Copy link
Collaborator

This PR adds a trivial refactoring on the hack/create-user.sh script.
In detail:

  • adds an helper function to check commands to follow DRY
  • use first Bash interpreter binary found in $PATH search paths, instead of the fixed /bin/bash path

Signed-off-by: maxgio92 massimiliano.giovagnoli.1992@gmail.com

bash interpreter binary could be put at different paths than /bin/bash.

Signed-off-by: maxgio92 <massimiliano.giovagnoli.1992@gmail.com>
add helper function to check commands existence.

Signed-off-by: maxgio92 <massimiliano.giovagnoli.1992@gmail.com>
Copy link
Member

@bsctl bsctl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maxgio92 thks LGTM

@bsctl bsctl merged commit e0d5e6f into master Oct 22, 2021
@bsctl bsctl deleted the maxgio92/hack-create-user branch October 22, 2021 18:55
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.

2 participants