Update 'duplicacy.sh'
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user