Support older shells without [[ ]] syntax

This commit is contained in:
Seth Nickell 2020-04-28 01:53:22 -10:00
Родитель 118801f8fb
Коммит 433374230e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -4,8 +4,8 @@
# - Please install "jq" package before using this driver.
DIR=$(dirname "$(readlink -f "$0")")
JQ="${DIR}/jq" && [[ -f ${JQ} ]] || JQ="/usr/bin/jq"
MOUNT_CIFS="${DIR}/mount.cifs" && [[ -f ${MOUNT_CIFS} ]] || MOUNT_CIFS="/usr/sbin/mount.cifs"
JQ="${DIR}/jq" && [ -f ${JQ} ] || JQ="/usr/bin/jq"
MOUNT_CIFS="${DIR}/mount.cifs" && [ -f ${MOUNT_CIFS} ] || MOUNT_CIFS="/usr/sbin/mount.cifs"
LOG="/var/log/smb-driver.log"
VER="1.0.2"