diff options
author | typebrook <typebrook@gmail.com> | 2019-12-24 12:07:03 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-12-24 12:07:03 +0800 |
commit | 82d194a2b7461f1c6d924721d29cdb36d06d4567 (patch) | |
tree | 65c462a7819e8a89a1655dff395c4c1da777e21c /scripts/gist | |
parent | 223871381da8d9f9bb4dfddc35dca7ec4b942880 (diff) |
update
Diffstat (limited to 'scripts/gist')
-rwxr-xr-x | scripts/gist/gist | 6 |
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 | ||