Merge commit 'origin'
[rip_dvd/.git] / rip_dvd.wrap
index 128581d602842ee745303ed081ae561ee3b2ddfe..76fcb3ccd62883d2b6f136cf562beaa69939c350 100755 (executable)
@@ -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)