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

hack: customize script for OS type #1499

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

raghavendra-talur
Copy link
Member

The prerequisites are different on MacOS than on Linux. Customize the script accordingly.

Signed-off-by: Raghavendra Talur <[email protected]>
Copy link
Contributor

@asn1809 asn1809 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@nirs nirs left a comment

Choose a reason for hiding this comment

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

These bash scripts become more complicated and using bash cryptic syntax make it harder to maintain. This should move into drenv since it is about checking tools needed by drenv.

We already have a "drenv setup" that can be used to check or better deploy the required tools.

exit 1
fi
done
fi
Copy link
Member

Choose a reason for hiding this comment

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

This is unneeded duplication. We could do this instead:

if linux:
    append virt-host-validate to commands

And use single loop for checking if commands exist.

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.

3 participants