mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-02 18:07:43 +01: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"
|
||||
|
||||
# Clean data (keeps NFS entries intact)
|
||||
MOREDISKS=${MOREDISKS// \/\//,\/\/}
|
||||
MOREDISKS=${MOREDISKS//, /,}
|
||||
MOREDISKS=${MOREDISKS// /"\040"}
|
||||
MOREDISKS="$(echo "$MOREDISKS" | sed -E 's/[[:space:]]*,[[:space:]]*/,/g; s/^[[:space:]]+//; s/[[:space:]]+$//')"
|
||||
|
||||
# CIFS domain/workgroup
|
||||
DOMAINCLIENT=""
|
||||
|
||||
Reference in New Issue
Block a user