Make escape relevant

This commit is contained in:
Alexandre
2025-07-08 10:31:22 +02:00
committed by GitHub
parent 9792223cda
commit f3377343d1

View File

@@ -44,7 +44,7 @@ for KEYS in "${arr[@]}"; do
bashio::log.warning "One of your option is an array, skipping"
else
# Sanitize variable
if [[ "$VALUE" != \'*\' ]] && [[ "$VALUE" == *[!\*]* ]]; then
if [[ "$VALUE" != \'*\' ]] && [[ "$VALUE" =~ [^a-zA-Z0-9] ]]; then
VALUE=$(sanitize_variable "$VALUE")
fi
# Continue for single values