Check that mr is installed before using it
authorStuart Prescott <stuart+debian@nanonanonano.net>
Mon, 10 Oct 2011 15:04:52 +0000 (16:04 +0100)
committerStuart Prescott <stuart+debian@nanonanonano.net>
Mon, 10 Oct 2011 15:04:52 +0000 (16:04 +0100)
movein

diff --git a/movein b/movein
index f236b14..7adf333 100755 (executable)
--- a/movein
+++ b/movein
@@ -96,6 +96,11 @@ init() {
        exit 1
     fi
 
        exit 1
     fi
 
+    if ! which mr > /dev/null; then
+        echo '"mr" not found in the PATH'
+        exit 1
+    fi
+
     echo -n "git server hostname? [git.vireo.org] " 
     read GIT_HOST
     if [ -z "$GIT_HOST" ]; then 
     echo -n "git server hostname? [git.vireo.org] " 
     read GIT_HOST
     if [ -z "$GIT_HOST" ]; then