From 3886fa064c32efbc5d0bf47820a74dc1a8aa2ef7 Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Tue, 17 Aug 2021 14:49:10 -0400 Subject: [PATCH] updated restic version compare --- restic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restic.sh b/restic.sh index 7894a6b..aff7461 100644 --- a/restic.sh +++ b/restic.sh @@ -23,7 +23,7 @@ cd $(dirname "$0") git pull > /dev/null # restic version update -INSTALLED_RESTIC_VERSION=$(restic -h | awk '/VERSION:/{getline; print $1}') +INSTALLED_RESTIC_VERSION=$(restic version | awk '{print $2}') if [ ${LATEST_RESTIC_VERSION} != ${INSTALLED_RESTIC_VERSION} ] || [ ! -e '/usr/bin/restic' ]; then # Determine the Kernel and Architecture KERNEL=$(uname)