Avoid sanitize if not needed

This commit is contained in:
Alexandre
2025-07-08 10:21:02 +02:00
committed by GitHub
parent ae88a5fc85
commit be1b93c948

View File

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