]> ToastFreeware Gitweb - gregoa/movein.git/blobdiff - movein
list() and listremote(): sort results
[gregoa/movein.git] / 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
 }