mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-28 17:00:33 +02:00
Lint
This commit is contained in:
@@ -24,7 +24,7 @@ grep -o '^[^#=]*=' "$configtemplate" | sed 's/=//' | while read -r var; do
|
|||||||
# Check if the variable is in configcurrent, if not, append it
|
# Check if the variable is in configcurrent, if not, append it
|
||||||
if ! grep -q "^$var=" "$configcurrent"; then
|
if ! grep -q "^$var=" "$configcurrent"; then
|
||||||
bashio::log.warning "...$var was missing from your birdnet.conf file, it was re-added"
|
bashio::log.warning "...$var was missing from your birdnet.conf file, it was re-added"
|
||||||
echo "$(grep "^$var=" "$configtemplate")" >> "$configcurrent"
|
grep "^$var=" "$configtemplate" >> "$configcurrent"
|
||||||
fi
|
fi
|
||||||
# Check for duplicates
|
# Check for duplicates
|
||||||
if [ "$(grep -c "^$var=" "$configcurrent")" -gt 1 ]; then
|
if [ "$(grep -c "^$var=" "$configcurrent")" -gt 1 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user