Skip to content

lsb_release command existence checking in check_forked() #459

Open
@yosshikazuki

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions