From 21f95612c707f682341c3fc198079701254dd699 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 11 May 2024 00:20:27 +0200 Subject: [PATCH] Update 02-restorestreamdata.sh --- birdnet-pi/rootfs/etc/cont-init.d/02-restorestreamdata.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birdnet-pi/rootfs/etc/cont-init.d/02-restorestreamdata.sh b/birdnet-pi/rootfs/etc/cont-init.d/02-restorestreamdata.sh index a75881bf2..e1668b00b 100755 --- a/birdnet-pi/rootfs/etc/cont-init.d/02-restorestreamdata.sh +++ b/birdnet-pi/rootfs/etc/cont-init.d/02-restorestreamdata.sh @@ -2,7 +2,7 @@ # shellcheck shell=bash # Check if there are files in "$HOME"/BirdSongs/StreamData and move them to /data/StreamData -if [ -d /data/StreamData ] && [ "$(ls -A "$HOME"/BirdSongs/StreamData)" ]; then +if [ -d /data/StreamData ] && [ "$(ls -A /data/StreamData/)" ]; then bashio::log.warning "Container was stopped while files were still being analysed, restoring them"