diff --git a/.templates/92-smb_mounts.sh b/.templates/92-smb_mounts.sh index acb63c981..9ef388152 100644 --- a/.templates/92-smb_mounts.sh +++ b/.templates/92-smb_mounts.sh @@ -47,6 +47,7 @@ if bashio::config.has_value 'networkdisks'; then # Clean name of network share # shellcheck disable=SC2116,SC2001 disk=$(echo $disk | sed "s,/$,,") # Remove / at end of name + disk="${disk//"\040"/ }" #replace \040 with diskname="${disk//\\//}" #replace \ with / diskname="${diskname##*/}" # Get only last part of the name