X-Git-Url: http://git.pippins.net/embedvideo/.git/static/gitweb.js?a=blobdiff_plain;f=rip_dvd.wrap;h=76fcb3ccd62883d2b6f136cf562beaa69939c350;hb=774cd5372cab8e9265d62cc5e07ce707578cfa89;hp=128581d602842ee745303ed081ae561ee3b2ddfe;hpb=a6cb675fdbc9300cf5474b8153feb0bf84722d86;p=rip_dvd%2F.git diff --git a/rip_dvd.wrap b/rip_dvd.wrap index 128581d..76fcb3c 100755 --- a/rip_dvd.wrap +++ b/rip_dvd.wrap @@ -21,6 +21,18 @@ if [ -z "$dvdtype" ]; then usage fi +mydir=$(cd $(dirname $0) && pwd) +if [ -z "$ripcmd" ] +then + if [ -x "$mydir/rip_dvd" ] + then + ripcmd="$mydir/rip_dvd" + else + echo >&2 "Cannot find your rip_dvd command!" + exit 1 + fi +fi + ############################################################################## # Local Machine Settings: # Sources both the "default" conf file tracked by GIT (rip_dvd.conf.dist)