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:
Alexandre
2026-10-01 20:35:15 +02:00
committed by GitHub
parent b9a8daeca5
commit 87313d3c95

View File

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