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

lsb_release command existence checking in check_forked() #459

Open
yosshikazuki opened this issue Dec 9, 2024 · 0 comments
Open

lsb_release command existence checking in check_forked() #459

yosshikazuki opened this issue Dec 9, 2024 · 0 comments

Comments

@yosshikazuki
Copy link

yosshikazuki commented Dec 9, 2024

lsb_release does not have an option '-u' so this check will always result as false.
It could just check for the '-a' option.

lsb_release -a -u > /dev/null 2>&1

The issue with this, is that the else statement checks the '-r' option so the script will likely to fail in all Debian based distros.

if [ -r /etc/debian_version ] && [ "$lsb_dist" != "ubuntu" ] && [ "$lsb_dist" != "raspbian" ]; then

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

No branches or pull requests

1 participant