mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update 02-restorestreamdata.sh
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
set -e
|
||||
|
||||
if [ -d /data/StreamData ]; then
|
||||
bashio::log.fatal "Container was stopped while files were still being analyzed."
|
||||
|
||||
# Check if there are .wav files in /data/StreamData
|
||||
if find /data/StreamData -type f -name "*.wav" | grep -q .; then
|
||||
bashio::log.warning "Restoring .wav files from /data/StreamData to $HOME/BirdSongs/StreamData."
|
||||
bashio::log.warning "Container was stopped while files were still being analyzed."
|
||||
echo "... restoring .wav files from /data/StreamData to $HOME/BirdSongs/StreamData."
|
||||
|
||||
# Create the destination directory if it does not exist
|
||||
mkdir -p "$HOME"/BirdSongs/StreamData
|
||||
|
||||
Reference in New Issue
Block a user