]> ToastFreeware Gitweb - gregoa/movein.git/blobdiff - movein
Require exactly 1 argument for "locate"
[gregoa/movein.git] / movein
diff --git a/movein b/movein
index d2013da5db48de9b63500ca3b821de9c30707b73..3322bd22ddf271b90076a7fd334173b6f19ddcd7 100755 (executable)
--- a/movein
+++ b/movein
@@ -151,7 +151,7 @@ login() {
 
 execin() {
     local REPO
-    if [ $# -lt 1 ]; then
+    if [ $# -lt 2 ]; then
        usage
     fi
 
@@ -207,6 +207,9 @@ listremote() {
 
 locate() {
     local REPO
+    if [ $# -ne 1 ]; then
+        usage
+    fi
     for REPO in $($0 list); do
         (cd /; $0 exec "$REPO" git ls-files | sed -nr "/$1/{s/^/$REPO:/p}")
     done