mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Lint
This commit is contained in:
@@ -116,6 +116,8 @@ if [[ -f /helpers/timedatectl ]]; then
|
||||
fi
|
||||
|
||||
# Correct timezone showing in config.php
|
||||
# shellcheck disable=SC2016
|
||||
echo "... updating timezone in config.php"
|
||||
sed -i -e '/<option disabled selected>/s/selected//' \
|
||||
-e '/\$current_timezone = trim(shell_exec("timedatectl show --value --property=Timezone"));/d' \
|
||||
-e "/\$date = new DateTime('now');/i \$current_timezone = trim(shell_exec(\"timedatectl show --value --property=Timezone\"));" \
|
||||
|
||||
@@ -26,6 +26,7 @@ if [[ "$(uname -m)" = "x86_64" ]]; then
|
||||
bashio::log.warning "Trying to install tensorflow instead of tflite_runtime instead"
|
||||
mkdir -p /home/pi/.cache/pip
|
||||
chmod 777 /home/pi/.cache/pip
|
||||
# shellcheck disable=SC1091
|
||||
source /home/pi/BirdNET-Pi/birdnet/bin/activate
|
||||
pip3 uninstall -y tflite_runtime
|
||||
pip3 install tensorflow
|
||||
|
||||
Reference in New Issue
Block a user