From: Alan J. Pippin Date: Wed, 20 May 2009 15:53:23 +0000 (-0600) Subject: Redid last fix so vobfile name could be set properly X-Git-Tag: 1_0~28 X-Git-Url: http://git.pippins.net/embedvideo/.git/%27%20%20%20%20.%20%24GLOBALS%5B%27phpgw%27%5D-%3Elink%28%27inc/jquery/static/%7Bview%7D?a=commitdiff_plain;h=fc03fc4782e0d02ac6fd523e13718f33185ddefd;p=rip_dvd%2F.git Redid last fix so vobfile name could be set properly --- 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"