diff options
author | Grail Finder <wohilas@gmail.com> | 2023-03-11 12:18:18 +0600 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2023-03-11 12:18:18 +0600 |
commit | 7dfdba182a01aea1af0f571664061ef06de098d9 (patch) | |
tree | f5001304d8dafaf1449f2331f0110b64d0ec4489 /update_index.sh | |
parent | 0e4a30f9b954abbd6f33d8243f30402c2a71b4a0 (diff) |
Feat: loop script instead of cronmain
Diffstat (limited to 'update_index.sh')
-rwxr-xr-x | update_index.sh | 6 |
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 |