Update 'duplicacy.sh'

This commit is contained in:
2020-07-30 17:08:16 -04:00
parent 758cbb515a
commit 3b1b7e0ce8

View File

@@ -12,6 +12,10 @@ fi
trap "rm -f ${lockfile}; exit" INT TERM EXIT
echo $$ > ${lockfile}
# Duplicacy version update
LATEST_DUPLICACY_VERSION="2.6.1"
INSTALLED_DUPLICACY_VERSION=$(duplicacy -h | awk '/VERSION:/{getline; print $1}')
if [ ${LATEST_DUPLICACY_VERSION} != ${INSTALLED_DUPLICACY_VERSION} ]; then
# Determine the Kernel and Architecture
KERNEL=$(uname)
ARCH=$(uname -m)
@@ -44,6 +48,7 @@ else
echo "Kernel not supported."
exit
fi
fi
# run the backup
cd /