node-red / linux-installers

Node-RED install scripts for various flavours of Linux
Apache License 2.0
97 stars 63 forks source link

Script fails if sudo is last entry in group list #47

Closed puni2k closed 9 months ago

puni2k commented 9 months ago

Commit 7a61394 introduced a bug that would cause the script execution to fail on some systems if sudo is the last entry in the group list of the respective user

See my comment here: #r138923544

Two of my systems running Debian 11 (grep 3.6) and 12 (grep 3.8) are affected by this, while another running Manjaro (grep 3.11) is not.

The following regex

^.*\bsudo\b.*

seems to work better on my systems. Not an expert on regexes though, so take it with a grain of salt.

dceejay commented 9 months ago

Thanks