Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Check for /etc/lsb-release before reading it #28

@william-stearns

Description

@william-stearns

Cosmetic: grep tries to read the file even if it's not there.
Change:
check_os_is_ubuntu () {
grep -iq '^DISTRIB_ID *= *Ubuntu' /etc/lsb-release
}
to:
check_os_is_ubuntu () {
[ -s /etc/lsb-release ] && grep -iq '^DISTRIB_ID *= *Ubuntu' /etc/lsb-release
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions