snazzer
snazzer copied to clipboard
--help needs root permissions
$ ./snazzer --help
[sudo] password for stefan:
--help
should not ask for root permissions.
The offending line appears to be if ! $SUDO test -e "$SNAZZER_SUBVOLS_EXCLUDE_FILE"; then
$SUDO
is set to sudo
if snazzer
is not being run as root.
I believe the sudo
is there because $SNAZZER_SUBVOLS_EXCLUDE_FILE
defaults to /etc/snazzer/exclude.patterns
Is there a better solution than moving the case check for --help
to be above these lines?