summaryrefslogtreecommitdiff
path: root/update_index.sh
diff options
context:
space:
mode:
Diffstat (limited to 'update_index.sh')
-rwxr-xr-xupdate_index.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/update_index.sh b/update_index.sh
index 61a0e03..f6cf15f 100755
--- a/update_index.sh
+++ b/update_index.sh
@@ -9,7 +9,7 @@ echo "$filepath"
cp "$filepath" /home/grail/projects/web/dynamic-web-page/todays_audio.opus
-whisper --model medium --language de --device cpu /home/grail/projects/web/dynamic-web-page/todays_audio.opus
+whisper --model medium --language de --device cpu /home/grail/projects/web/dynamic-web-page/todays_audio.opus 2>/dev/null
phrase=$(cat todays_audio.opus.txt)
phrase=$(echo $phrase | tr "\n" " ")
@@ -19,5 +19,5 @@ phrase=$(echo $phrase | tr "\n" " ")
# in case of error go back
# cp audio.bak todays_audio.opus
-cp "$filepath" /home/grail/projects/web/grailblog/src/todays_audio.opus
-rsync -rPha /home/grail/projects/web/grailblog/src hostiko:/var/www
+yes | cp "$filepath" /home/grail/projects/web/grailblog/src/todays_audio.opus && \
+ rsync -rPha /home/grail/projects/web/grailblog/src hostiko:/var/www