From b14f923a097b5833c2b1f05180df5c8ccf4e92fe Mon Sep 17 00:00:00 2001 From: James Barnett Date: Tue, 14 Feb 2017 13:09:43 -0600 Subject: [PATCH] Remove test if there are no snapper configs this is tested at the end of the script already --- scripts/snap-pac | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/snap-pac b/scripts/snap-pac index 88cfce9..c1fb8c0 100755 --- a/scripts/snap-pac +++ b/scripts/snap-pac @@ -55,7 +55,6 @@ source "$SNAPPER_CONFIG_FILE" [[ ! -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." [[ $1 != "pre" ]] && [[ $1 != "post" ]] && die "First argument should either be 'pre' or 'post'." -[[ -z "$SNAPPER_CONFIGS" ]] && die "No snapper configurations found, so not taking any snapshots." declare -r pre_or_post=$1 declare pacman_cmd="$(sed 's./usr/bin/pacman.pacman.g' <(ps -C pacman -o args=))"