瀏覽代碼

Sort subdirs for more intuitive behavior

Alois Mahdal 11 年之前
父節點
當前提交
c5649ed1f7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      dotfiles/git-universe/bin/sibling

+ 1
- 1
dotfiles/git-universe/bin/sibling 查看文件

@@ -53,7 +53,7 @@ if [ -f $sibling_conf ];
53 53
 then
54 54
     sibling=$(cat $sibling_conf);
55 55
 else
56
-    sibling=$(find -maxdepth 1 -type d -name "[^.]*" | head -1)
56
+    sibling=$(find -maxdepth 1 -type d -name "[^.]*" | sort | head -1)
57 57
 fi
58 58
 
59 59
 if [ -z "$sibling" ];