From fc03fc4782e0d02ac6fd523e13718f33185ddefd Mon Sep 17 00:00:00 2001
From: "Alan J. Pippin" <ajp@pippins.net>
Date: Wed, 20 May 2009 09:53:23 -0600
Subject: [PATCH] Redid last fix so vobfile name could be set properly

---
 rip_dvd | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/rip_dvd b/rip_dvd
index 521bf03..5d9f856 100755
--- 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"
-- 
2.34.1