Update 92-smb_mounts.sh

This commit is contained in:
Alexandre
2022-08-23 14:31:04 +02:00
committed by GitHub
parent 13bdc31e90
commit dfee52ef55

View File

@@ -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