This commit is contained in:
Alexandre
2024-10-05 10:28:37 +02:00
committed by GitHub
parent 7595472ece
commit 61c89ddcd9

View File

@@ -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
if ! grep -q "^$var=" "$configcurrent"; then
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
# Check for duplicates
if [ "$(grep -c "^$var=" "$configcurrent")" -gt 1 ]; then