From 82d194a2b7461f1c6d924721d29cdb36d06d4567 Mon Sep 17 00:00:00 2001 From: typebrook Date: Tue, 24 Dec 2019 12:07:03 +0800 Subject: update --- scripts/gist/gist | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/gist') 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() { echo $line_num $link $file_num $(echo $description | cut -c -70) done | tee $index - # clone repos which are not in the local - comm -13 <(find . -maxdepth 1 -type d | sed '1d; s#\./##' | sort) \ - <(cat index | cut -d' ' -f2 | sed 's#.*/##' | sort) |\ + # clone repos which are not in the local machine + comm -13 <(find $folder -maxdepth 1 -type d | sed '1d; s#.*/##' | sort) \ + <(cat $index | cut -d' ' -f2 | sed 's#.*/##' | sort) |\ xargs -I{} git clone git@github.com:{}.git $folder/{} } -- cgit v1.2.3-70-g09d2