Skip to content

script does not check or abort if user is not in sudoer group #45

@bs-eng

Description

@bs-eng

Hi!
Running the script on a debian 12 system (sudo is installed) the script does not abort if the user (under which the script is run) is not in the sudoers group. As it is very unintuitive to abort from the password prompt and being in sudoers group is a hard requirement, this should be checked first.

Expected behaviour: abort with error

The used command was:
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --nodered-user=xxxxxx --skip-pi --node20

Cheers

Metadata

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