From 91b9ff5a745f40aebbc77946396e035c0f0aa49c Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 25 Apr 2022 08:24:41 +0100 Subject: [PATCH] Fixes https://github.com/MiSTer-devel/Scripts_MiSTer/issues/84 (#85) Adds quotes to fix './cifs_mount.sh: line 251: [: !=: unary operator expected' error Co-authored-by: Marc Emmerson --- cifs_mount.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cifs_mount.sh b/cifs_mount.sh index 7c968c2..8f39450 100644 --- a/cifs_mount.sh +++ b/cifs_mount.sh @@ -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