mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-09 07:20:58 +02: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"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user