summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xscripts/gist/gist6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gist/gist b/scripts/gist/gist
index ab68176..e739b2d 100755
--- a/scripts/gist/gist
+++ b/scripts/gist/gist
@@ -15,9 +15,9 @@ function _update() {
15 echo $line_num $link $file_num $(echo $description | cut -c -70) 15 echo $line_num $link $file_num $(echo $description | cut -c -70)
16 done | tee $index 16 done | tee $index
17 17
18 # clone repos which are not in the local 18 # clone repos which are not in the local machine
19 comm -13 <(find . -maxdepth 1 -type d | sed '1d; s#\./##' | sort) \ 19 comm -13 <(find $folder -maxdepth 1 -type d | sed '1d; s#.*/##' | sort) \
20 <(cat index | cut -d' ' -f2 | sed 's#.*/##' | sort) |\ 20 <(cat $index | cut -d' ' -f2 | sed 's#.*/##' | sort) |\
21 xargs -I{} git clone git@github.com:{}.git $folder/{} 21 xargs -I{} git clone git@github.com:{}.git $folder/{}
22} 22}
23 23