summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-02-05 14:19:19 +0800
committertypebrook <typebrook@gmail.com>2020-02-05 14:19:19 +0800
commit93abc146a9c61b5cb9d97e491b42ad680f4d8811 (patch)
tree546fcbfe8d5a10779554999a8c9047e67d6a1f40
parent03bc8c4edcb61502649ac28ef254b2608c20b988 (diff)
update
-rwxr-xr-xscripts/gist5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/gist b/scripts/gist
index ef1e5e2..2d13f3f 100755
--- a/scripts/gist
+++ b/scripts/gist
@@ -420,7 +420,10 @@ _create_gist() {
420 | AccessJsonElement "$(_gist_body)" > $http_data \ 420 | AccessJsonElement "$(_gist_body)" > $http_data \
421 && http_method POST $GITHUB_API/gists \ 421 && http_method POST $GITHUB_API/gists \
422 | sed '1 s/^/[/; $ s/$/]/' \ 422 | sed '1 s/^/[/; $ s/$/]/' \
423 | _parse_response $(( $(sed '/^s/ d' $INDEX | wc -l) +1 )) >> $INDEX 423 | _parse_response $(( $(sed '/^s/ d' $INDEX | wc -l) +1 )) \
424 | tee -a $INDEX \
425 | cut -d' ' -f2 | sed -E 's#.*/##' \
426 | (xargs -I{} git clone git@github.com:{}.git $folder/{} &> /dev/null &)
424 427
425 if [[ $? -eq 0 ]]; then 428 if [[ $? -eq 0 ]]; then
426 echo 'Gist is created' 429 echo 'Gist is created'