From f64298fc6b63d7b4be8b513fcd5153f049d1f0db Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 19 Apr 2024 09:52:49 +0200 Subject: [PATCH] Update 00-smb_mounts.sh --- .templates/00-smb_mounts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.templates/00-smb_mounts.sh b/.templates/00-smb_mounts.sh index f5c092166..106ca09ba 100755 --- a/.templates/00-smb_mounts.sh +++ b/.templates/00-smb_mounts.sh @@ -186,6 +186,8 @@ if bashio::config.has_value 'networkdisks'; then # Extracting SMB versions and normalize output # shellcheck disable=SC2210,SC2094 SMBVERS="$(nmap --script smb-protocols "$server" -p 445 2>1 | awk '/ [0-9]/' | awk '{print $NF}' | cut -c -3 | sort -V | tail -n 1 || true)" + # Avoid : + SMBVERS="${SMBVERS/:/.}" # Manage output if [ -n "$SMBVERS" ]; then case $SMBVERS in