mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 05:44:03 +02:00
Update 92-smb_mounts.sh
This commit is contained in:
@@ -47,6 +47,7 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
# Clean name of network share
|
# Clean name of network share
|
||||||
# shellcheck disable=SC2116,SC2001
|
# shellcheck disable=SC2116,SC2001
|
||||||
disk=$(echo $disk | sed "s,/$,,") # Remove / at end of name
|
disk=$(echo $disk | sed "s,/$,,") # Remove / at end of name
|
||||||
|
disk="${disk//"\040"/ }" #replace \040 with
|
||||||
diskname="${disk//\\//}" #replace \ with /
|
diskname="${disk//\\//}" #replace \ with /
|
||||||
diskname="${diskname##*/}" # Get only last part of the name
|
diskname="${diskname##*/}" # Get only last part of the name
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user