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"
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"