diff --git a/duplicacy.sh b/duplicacy.sh index c907c4a..d94e64c 100644 --- a/duplicacy.sh +++ b/duplicacy.sh @@ -28,10 +28,10 @@ if [ ${LATEST_DUPLICACY_VERSION} != ${INSTALLED_DUPLICACY_VERSION} ] || [ ! -e ' ARCH=$(uname -m) if [ ${KERNEL} == 'Linux' ]; then if [ ${ARCH} == 'x86_64' ]; then - cp -v $(dirname "$0")/binaries/duplicacy_linux_x64_2.6.1 /usr/bin/duplicacy >> ${LOGFILE} + cp -v $(dirname "$0")/binaries/duplicacy_linux_x64_${LATEST_DUPLICACY_VERSION} /usr/bin/duplicacy >> ${LOGFILE} chmod +x /usr/bin/duplicacy >> ${LOGFILE} elif [ ${ARCH} == 'aarch64' ]; then - cp -v $(dirname "$0")/binaries/duplicacy_linux_arm64_2.6.1 /usr/bin/duplicacy >> ${LOGFILE} + cp -v $(dirname "$0")/binaries/duplicacy_linux_arm64_${LATEST_DUPLICACY_VERSION} /usr/bin/duplicacy >> ${LOGFILE} chmod +x /usr/bin/duplicacy >> ${LOGFILE} else echo "Kernel Type: ${KERNEL}" @@ -41,7 +41,7 @@ if [ ${LATEST_DUPLICACY_VERSION} != ${INSTALLED_DUPLICACY_VERSION} ] || [ ! -e ' fi elif [ ${KERNEL} == 'FreeBSD' ]; then if [ ${ARCH} == 'amd64' ]; then - cp -v $(dirname "$0")/binaries/duplicacy_freebsd_x64_2.6.1 /usr/bin/duplicacy >> ${LOGFILE} + cp -v $(dirname "$0")/binaries/duplicacy_freebsd_x64_${LATEST_DUPLICACY_VERSION} /usr/bin/duplicacy >> ${LOGFILE} chmod +x /usr/bin/duplicacy >> ${LOGFILE} else echo "Kernel Type: ${KERNEL}"