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