From 043bfe8bd2bfe9c0f46415a42c8c3f399e866f6d Mon Sep 17 00:00:00 2001 From: James Barnett Date: Sat, 3 Jun 2017 19:55:01 -0400 Subject: [PATCH] fix typo --- bin/snap-sync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/snap-sync b/bin/snap-sync index 94170da..1fa9d65 100755 --- a/bin/snap-sync +++ b/bin/snap-sync @@ -30,7 +30,7 @@ version="0.4" name="snap-sync" # The following line is modified by the Makefile -SNAPPER_CONFIG=/etc/sysconfig/snapper +SNAPPER_CONFIG=/etc/conf.d/snapper TMPDIR=$(mktemp -d) PIPE=$TMPDIR/$name.out @@ -70,7 +70,7 @@ trapkill() { } [[ $EUID -ne 0 ]] && die "Script must be run as root." -! [[ -f $SNAPPER_CONFIG ]] && die "$SNAPPER_CONFIG does not exist." +[[ -f $SNAPPER_CONFIG ]] || die "$SNAPPER_CONFIG does not exist." trap 'traperror ${LINENO} $? "$BASH_COMMAND" $BASH_LINENO "${FUNCNAME[@]}"' ERR trap trapkill SIGTERM SIGINT