From 0d09df67ba4d84f881d20c87cae2e9b2e16807ee Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 1 Jan 2024 18:21:13 +0100 Subject: fix(hm/pkgs/ytc): Wait for last mpv instance to exit before starting burndown --- hm/soispha/pkgs/scripts/wrappers/ytc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hm/soispha/pkgs/scripts/wrappers/ytc') diff --git a/hm/soispha/pkgs/scripts/wrappers/ytc b/hm/soispha/pkgs/scripts/wrappers/ytc index 9dfbf6c5..f563f00d 100755 --- a/hm/soispha/pkgs/scripts/wrappers/ytc +++ b/hm/soispha/pkgs/scripts/wrappers/ytc @@ -75,6 +75,7 @@ while read -r base; do if [ "$old_filename" ]; then while [ "$(wc -l < "$files_to_play")" -gt "$CONCURRENT" ]; do + msg2 "Waiting for '$pid' to finish as we already have '$(wc -l < "$files_to_play")' files cached" wait "$pid" done fi @@ -83,6 +84,7 @@ while read -r base; do old_id="$id"; done < "$(tmp echo "$bases")" +wait "$pid" echo "$old_filename,$old_id" >> "$files_to_play" while read -r base; do -- cgit 1.4.1