From 48a33e995c8900ec55a536da202db79914e3b4b4 Mon Sep 17 00:00:00 2001 From: Stuart Prescott Date: Thu, 13 Oct 2011 14:52:33 +0100 Subject: [PATCH] Require exactly 1 argument for "locate" --- movein | 3 +++ 1 file changed, 3 insertions(+) diff --git a/movein b/movein index 47c01fc..3322bd2 100755 --- a/movein +++ b/movein @@ -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 -- 2.39.5