From 1ef7b954b93995bd60b0a1e3eca40afdacd3e24d Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 6 Mar 2022 01:08:27 +0000 Subject: [PATCH] dvdrip: Leave a note in the working directory about which device we're using. --- dvdrip | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dvdrip b/dvdrip index a4b5900..734b00f 100755 --- a/dvdrip +++ b/dvdrip @@ -95,6 +95,9 @@ info "copying \`$discid'" echo "$discid" >"$tmp/$tag/discid.new" mv "$tmp/$tag/discid.new" "$tmp/$tag/discid" +echo "$dev" >"$tmp/$tag/device.new" +mv "$tmp/$tag/device.new" "$tmp/$tag/device" + accumulate_badblocks () { if [ -f "$tmp/$tag/badblocks.new" ]; then if [ ! -f "$tmp/$tag/badblocks" ]; then @@ -143,12 +146,14 @@ if [ ! -f "$tmp/$tag/iso" ]; then -b"$tmp/$tag/badblocks.new" "$@" "$dev" "$tmp/$tag/iso.new" run mv "$tmp/$tag/iso.new" "$tmp/$tag/iso" accumulate_badblocks + rm -f "$tmp/$tag/device" case $retry in t) rm -f "$tmp/$tag/badblocks.retry" ;; esac if [ -f "$tmp/$tag/badblocks" ]; then fail "bad sectors found: check \`$tmp/$tag/iso', run again if ok" fi fi +rm -f "$tmp/$tag/device" run mv "$tmp/$tag/dest.new" "$tmp/$tag/dest" if [ -f "$tmp/$tag/eject" ]; then eject=t; else eject=nil; fi if [ -f "$tmp/$tag/ding" ]; then ding=t; else ding=nil; fi -- 2.11.0