Added code to remove trailing '.' character from the end of the dvdname
authorAlan J. Pippin <ajp@pippins.net>
Wed, 20 May 2009 15:37:11 +0000 (09:37 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Wed, 20 May 2009 15:37:11 +0000 (09:37 -0600)
rip_dvd

diff --git a/rip_dvd b/rip_dvd
index 57297544d5b3084fa0e0cb1ba9449fd2d427252b..521bf03f54502ecc93c261d4d79933c0aadbc697 100755 (executable)
--- a/rip_dvd
+++ b/rip_dvd
@@ -246,6 +246,9 @@ 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'`