mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 17:15:57 +02:00
Update 71-newfeatures.sh
This commit is contained in:
@@ -66,6 +66,7 @@ if bashio::config.true "SPECIES_CONVERTER"; then
|
|||||||
# Modify views.php if not already done
|
# Modify views.php if not already done
|
||||||
if ! grep -q "Converted" "$HOME"/BirdNET-Pi/homepage/views.php; then
|
if ! grep -q "Converted" "$HOME"/BirdNET-Pi/homepage/views.php; then
|
||||||
# Add button
|
# Add button
|
||||||
|
# shellcheck disable=SC2016
|
||||||
sed -i '/Excluded Species List/a\ <button type=\\"submit\\" name=\\"view\\" value=\\"Converted\\" form=\\"views\\">Converted Species List</button>' "$HOME"/BirdNET-Pi/homepage/views.php
|
sed -i '/Excluded Species List/a\ <button type=\\"submit\\" name=\\"view\\" value=\\"Converted\\" form=\\"views\\">Converted Species List</button>' "$HOME"/BirdNET-Pi/homepage/views.php
|
||||||
# Flag to indicate whether we've found the target line
|
# Flag to indicate whether we've found the target line
|
||||||
found_target=false
|
found_target=false
|
||||||
|
|||||||
Reference in New Issue
Block a user