Open rumpelsepp opened 8 years ago
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?
--help
should not ask for root permissions.