mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-29 09:11:44 +00: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:
1 parent
b9a8daeca5
commit
87313d3c95
1 file changed
+1
-1
@@ -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