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

Factor out version check code into a separate script. Call the script… #199

Merged
merged 3 commits into from
Jul 13, 2024

Conversation

javajosh
Copy link
Contributor

@javajosh javajosh commented Jul 9, 2024

This is a redo of my previous PR. The git history is clean now, and the code is improved: distro name is properly checked, and the awk version comparison code is simplified.

The main purpose of this PR is to help others avoid the footgun of installing omakub over Ubuntu 22, which is the current LTS release.

… in install.sh after the omakub clone in boot.sh
check-version.sh Outdated
}

if check_ubuntu_version; then
echo "Script is running on Ubuntu 24.04 or higher. Continuing execution..."
Copy link
Member

Choose a reason for hiding this comment

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

Let's just stay quiet if operating system is correct. That's the default assumption. So only output anything if we're failing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. Done.

Comment on lines 24 to 27
if ! check_ubuntu_version; then
echo "Script execution failed due to system requirements not being met." >&2
exit 1
fi
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remain silent on version check success.

@dhh dhh merged commit be7635f into basecamp:master Jul 13, 2024
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