]> ToastFreeware Gitweb - gregoa/movein.git/commitdiff
list() and listremote(): sort results
authorgregor herrmann <gregoa@debian.org>
Fri, 21 Oct 2011 21:34:21 +0000 (23:34 +0200)
committergregor herrmann <gregoa@debian.org>
Fri, 21 Oct 2011 21:34:21 +0000 (23:34 +0200)
movein

diff --git a/movein b/movein
index c6c51370d26ad90d78d30a5a51e91fe00ec0ea01..80aa3fad301be65fd6c65ed8e20f43d1fdd67ae7 100755 (executable)
--- a/movein
+++ b/movein
@@ -170,12 +170,12 @@ add() {
 }
 
 list() {
 }
 
 list() {
-    find "${LOCAL_REPOS}" -mindepth 1 -maxdepth 1 -type d | sed 's,^.*/\([^/]*\).git$,\1,'
+    find "${LOCAL_REPOS}" -mindepth 1 -maxdepth 1 -type d | sed 's,^.*/\([^/]*\).git$,\1,' | sort
 }
 
 listremote() {
     ssh $GIT_HOST "
 }
 
 listremote() {
     ssh $GIT_HOST "
-        find '${REMOTE_REPOS}' -mindepth 1 -maxdepth 1 -type d | sed 's,^.*/\([^/]*\).git$,\1,'
+        find '${REMOTE_REPOS}' -mindepth 1 -maxdepth 1 -type d | sed 's,^.*/\([^/]*\).git$,\1,' | sort
     " </dev/null
 }
 
     " </dev/null
 }