Redid last fix so vobfile name could be set properly
authorAlan J. Pippin <ajp@pippins.net>
Wed, 20 May 2009 15:53:23 +0000 (09:53 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Wed, 20 May 2009 15:53:23 +0000 (09:53 -0600)
rip_dvd

diff --git a/rip_dvd b/rip_dvd
index 521bf03f54502ecc93c261d4d79933c0aadbc697..5d9f856892250a07f17182fa4066ffc1b3dae1e0 100755 (executable)
--- a/rip_dvd
+++ b/rip_dvd
@@ -235,6 +235,12 @@ else
   ripdvd=0
 fi
 
+# remove bad characters from the dvdname
+dvdname=${dvdname%.} # remove trailing '.' character
+
+# make a "safe" dvdname (remove special characters)
+safedvdname=`basename "$dvdname" | sed 's/[ !&*\\$?]/_/g'`
+
 # Make sure we have a non-empty dvdname
 if [ -z "$dvdname" ]; then
   echo "-E- unable to determine dvdname"
@@ -246,12 +252,6 @@ if [ -z "$vobfile" ]; then
   vobfile="$dest/$dvdname.VOB"
 fi
 
-# remove bad characters from the dvdname
-dvdname=${dvdname%.} # remove trailing '.' character
-
-# make a "safe" dvdname (remove special characters)
-safedvdname=`basename "$dvdname" | sed 's/[ !&*\\$?]/_/g'`
-
 # set up some variables to hold various logfiles
 logfile="$logdir/$dvdname.log"
 passlogfile="$tmpdir/$safedvdname.log"