Adds quotes to fix './cifs_mount.sh: line 251: [: !=: unary operator
expected' error

Co-authored-by: Marc Emmerson <marc@emmerson.io>
This commit is contained in:
Marc
2022-04-25 08:24:41 +01:00
committed by GitHub
parent 5bc31a52c5
commit 91b9ff5a74

View File

@@ -248,7 +248,7 @@ else
fi
MOUNT_SOURCE="//$SERVER/$SHARE"
[ $SHARE_DIRECTORY != "" ] && MOUNT_SOURCE+=/$SHARE_DIRECTORY
[ "$SHARE_DIRECTORY" != "" ] && MOUNT_SOURCE+=/$SHARE_DIRECTORY
if [ "$LOCAL_DIR" == "*" ] || { echo "$LOCAL_DIR" | grep -q "|"; }
then