mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 17:15:57 +02:00
Improve MOREDISKS data cleaning logic
Refactor MOREDISKS cleaning process using sed for better handling of spaces and commas.
This commit is contained in:
@@ -196,9 +196,7 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
CHARSET=",iocharset=utf8"
|
CHARSET=",iocharset=utf8"
|
||||||
|
|
||||||
# Clean data (keeps NFS entries intact)
|
# Clean data (keeps NFS entries intact)
|
||||||
MOREDISKS=${MOREDISKS// \/\//,\/\/}
|
MOREDISKS="$(echo "$MOREDISKS" | sed -E 's/[[:space:]]*,[[:space:]]*/,/g; s/^[[:space:]]+//; s/[[:space:]]+$//')"
|
||||||
MOREDISKS=${MOREDISKS//, /,}
|
|
||||||
MOREDISKS=${MOREDISKS// /"\040"}
|
|
||||||
|
|
||||||
# CIFS domain/workgroup
|
# CIFS domain/workgroup
|
||||||
DOMAINCLIENT=""
|
DOMAINCLIENT=""
|
||||||
|
|||||||
Reference in New Issue
Block a user