From 4961d4b06d5db3336c535cbf89ef070d7ba01b8a Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Tue, 17 Aug 2021 15:02:50 -0400 Subject: [PATCH] added quotes for comapring --- restic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restic.sh b/restic.sh index a39b6c0..83af601 100644 --- a/restic.sh +++ b/restic.sh @@ -24,7 +24,7 @@ git pull > /dev/null # restic version update INSTALLED_RESTIC_VERSION=$(restic version | awk '{print $2}') -if [ ${LATEST_RESTIC_VERSION} != ${INSTALLED_RESTIC_VERSION} ] || [ ! -e '/usr/bin/restic' ]; then +if [ "${LATEST_RESTIC_VERSION}" != "${INSTALLED_RESTIC_VERSION}" ] || [ ! -e '/usr/bin/restic' ]; then # Determine the Kernel and Architecture KERNEL=$(uname) ARCH=$(uname -m)