mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-11 01:55:59 +02:00
Lint SC2236
This commit is contained in:
@@ -58,7 +58,7 @@ else
|
||||
fi || true
|
||||
|
||||
# Use ALSA CARD defined in add-on options if available
|
||||
if [ ! -z "${ALSA_CARD:-}" ]; then
|
||||
if [ -n "${ALSA_CARD:-}" ]; then
|
||||
bashio::log.warning "ALSA_CARD is defined, the birdnet.conf is adapt to use device $ALSA_CARD"
|
||||
for file in "$HOME"/BirdNET-Pi/birdnet.conf /config/birdnet.conf; do
|
||||
if [ -f "$file" ]; then
|
||||
|
||||
@@ -18,7 +18,7 @@ fi
|
||||
|
||||
filename="Spectrum_$(date "+%Y-%m-%d_%H:%M").wav"
|
||||
|
||||
if [ ! -z "$RTSP_STREAM" ];then
|
||||
if [ -n "${RTSP_STREAM:-}" ];then
|
||||
# Explode the RSPT steam setting into an array so we can count the number we have
|
||||
RTSP_STREAMS_EXPLODED_ARRAY=("${RTSP_STREAM//,/ }")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user