Remove check for root

Snapper may not actually require it depending on how the user set it up,
and if this is run from pacman (as it should be), it will always be run
as root
This commit is contained in:
James Barnett 2017-02-14 13:22:18 -06:00
parent 923d232f8e
commit 6efd9d6fc7
No known key found for this signature in database
GPG key ID: E4B5E45AA3B8C5C3

View file

@ -58,7 +58,6 @@ trap kill_exit SIGTERM SIGINT
source "$SNAPPER_CONFIG_FILE" source "$SNAPPER_CONFIG_FILE"
[[ $EUID -ne 0 ]] && die "Script must be run as root."
[[ ! -d /var/run/dbus ]] && die "No dbus available. Are you in a chroot environment?" [[ ! -d /var/run/dbus ]] && die "No dbus available. Are you in a chroot environment?"
[[ $# -ne 1 ]] && die "Only one argument should be passed to this script." [[ $# -ne 1 ]] && die "Only one argument should be passed to this script."
[[ $1 != "pre" ]] && [[ $1 != "post" ]] && die "First argument should either be 'pre' or 'post'." [[ $1 != "pre" ]] && [[ $1 != "post" ]] && die "First argument should either be 'pre' or 'post'."