mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Avoid sanitize if not needed
This commit is contained in:
@@ -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" != \'*\' ]]; then
|
||||
if [[ "$VALUE" != \'*\' ]] && [[ "$VALUE" == *[!\*]* ]]; then
|
||||
VALUE=$(sanitize_variable "$VALUE")
|
||||
fi
|
||||
# Continue for single values
|
||||
|
||||
Reference in New Issue
Block a user