chiark
/
gitweb
/
~mdw
/
dvdrip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
794f3f9
)
dvdrip: Prepare the `dest' file early, so that it can be edited.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 19 Feb 2022 19:06:25 +0000
(19:06 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 19 Feb 2022 19:06:25 +0000
(19:06 +0000)
dvdrip
patch
|
blob
|
blame
|
history
diff --git
a/dvdrip
b/dvdrip
index 5c1e72bedfa58e99709f5ee4c85633509d510320..250e642dc5d9f99ee0fe1fb658ca9aa04ecbb4f0 100755
(executable)
--- a/
dvdrip
+++ b/
dvdrip
@@
-128,6
+128,13
@@
accumulate_badblocks () {
}
mkdir -p "$tmp/$tag"
}
mkdir -p "$tmp/$tag"
+any=nil
+for i in "$tmp/$tag/dest.new" "$tmp/$tag/dest" "$tmp/$tag/dest.seen"; do
+ if [ -f "$tmp/$tag/dest.new" ]; then any=t; fi
+done
+case $any in
+ nil) printf "%s\n" "${sub+$sub/}$out.iso" >"$tmp/$tag/dest.new" ;;
+esac
case $backup in
t)
if [ ! -d "$tmp/$tag/rip" ]; then
case $backup in
t)
if [ ! -d "$tmp/$tag/rip" ]; then
@@
-162,7
+169,6
@@
case $backup in
fi
;;
esac
fi
;;
esac
-printf "%s\n" "${sub+$sub/}$out.iso" >"$tmp/$tag/dest.new"
mv "$tmp/$tag/dest.new" "$tmp/$tag/dest"
run "$DVDRIP_UPLOAD"
case $eject in t) run eject "$dev" ;; esac
mv "$tmp/$tag/dest.new" "$tmp/$tag/dest"
run "$DVDRIP_UPLOAD"
case $eject in t) run eject "$dev" ;; esac