From 021aa6e76c5a92eb0a5a5e44774ffb150ecc4c78 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 6 Mar 2022 01:27:14 +0000 Subject: [PATCH] dvdrip-retry-botched-vobs: Eject discs when we're done with them. --- dvdrip-retry-botched-vobs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dvdrip-retry-botched-vobs b/dvdrip-retry-botched-vobs index c281b60..579537e 100755 --- a/dvdrip-retry-botched-vobs +++ b/dvdrip-retry-botched-vobs @@ -13,7 +13,11 @@ find "$@" -type f -name "*.retry" -print | while IFS= read -r r; do case $id in "$want_id") break ;; "$last_wrong") ;; - *) echo "No, that's $id -- wanted $want_id..."; last_wrong=$id ;; + *) + echo "No, that's $id -- wanted $want_id..." + last_wrong=$id + eject "$dev" + ;; esac sleep 2 done @@ -29,4 +33,5 @@ find "$@" -type f -name "*.retry" -print | while IFS= read -r r; do *) echo "Failed! :-("; exit 2 ;; esac done + eject "$dev" done -- 2.11.0