Update 'duplicacy.sh'

This commit is contained in:
2020-07-30 16:47:18 -04:00
parent d8788e36f6
commit 22ad813e2c

View File

@@ -15,7 +15,7 @@ echo $$ > ${lockfile}
# Determine the Kernel and Architecture
KERNEL=$(uname)
ARCH=$(uname -m)
if [${KERNEL} == 'Linux']; then
if [ ${KERNEL} == 'Linux' ]; then
if [ ${ARCH} == 'x86_64' ]; then
cp -v $(dirname "$0")/binaries/duplicacy_linux_x64_2.6.1 /usr/bin/duplicacy >> ${LOGFILE}
chown +x /usr/bin/duplicacy >> ${LOGFILE}
@@ -28,7 +28,7 @@ if [${KERNEL} == 'Linux']; then
echo "Arch not supported."
exit
fi
elif [${KERNEL} == 'FreeBSD']; then
elif [ ${KERNEL} == 'FreeBSD' ]; then
if [ ${ARCH} == 'amd64' ]; then
cp -v $(dirname "$0")/binaries/duplicacy_freebsd_x64_2.6.1 /usr/bin/duplicacy >> ${LOGFILE}
chown +x /usr/bin/duplicacy >> ${LOGFILE}