From 9a5500f2006ca40406db90d447e35df9d280e86a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 23 Aug 2022 14:25:12 +0200 Subject: [PATCH] Allow spaces in smb shares names https://github.com/alexbelgium/hassio-addons/issues/436 --- .templates/92-smb_mounts.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.templates/92-smb_mounts.sh b/.templates/92-smb_mounts.sh index 1396f6383..2bfdf723b 100644 --- a/.templates/92-smb_mounts.sh +++ b/.templates/92-smb_mounts.sh @@ -35,6 +35,11 @@ if bashio::config.has_value 'networkdisks'; then PGID=",gid=$(id -g)" fi + # Clean data + MOREDISKS=${MOREDISKS// \/\//\/\/} + MOREDISKS=${MOREDISKS//, /,} + MOREDISKS=${MOREDISKS// /"\040"} + # Mounting disks # shellcheck disable=SC2086 for disk in ${MOREDISKS//,/ }; do # Separate comma separated values