mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-23 08:20:11 +02:00
Update entry validation for local mounts script
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -70,7 +70,7 @@ if bashio::config.has_value 'localdisks'; then
|
||||
devpath=/dev/disk/by-label
|
||||
else
|
||||
hint=""
|
||||
[[ "$entry" == */* ]] && hint="For a folder, the text before the first '/' must be the disk. "
|
||||
[[ "$entry" == [!/]*/?* && "$prefix" != dev && "$prefix" != disk ]] && hint="For a folder, the text before the first '/' must be the disk. "
|
||||
bashio::log.fatal "$entry does not match any known physical device, UUID, or label. $hint"
|
||||
continue
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user