[问题] 进入全部的子目录做git pull

楼主: filiaslayers (司马云)   2014-10-08 14:57:38
请问一下,我想写一个script好方便我把全部的子目录做git pull的动作
这该如何写?
目录型式
a
b
top- c
d
e
abcde分别都是一个独立的repo
本来是想用find,不过find好像会把全部的子目录列出来
但我只要列出第一层的
而且用find感觉也不是最好的方法,不知道还有其它的方法吗?
作者: x000032001 (版废了该走了)   2014-10-08 15:11:00
for $file in * do if [ -d $file ]; then .. done ??

Links booklink

Contact Us: admin [ a t ] ucptt.com