From c232f0b4b8c1c8e0e4d9c2471d30c1a7f7c07b2e Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 26 Dec 2019 14:16:40 +0800 Subject: update --- scripts/gist | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index 152c079..cde4ec7 100755 --- a/scripts/gist +++ b/scripts/gist @@ -13,10 +13,11 @@ index=$folder/index # get the list of gists _update() { curl -s -H "$auth_header" $github_api/users/$user/gists |\ - jq '.[] | "\( .html_url ) \(.files | keys | length) \( .description )"' |\ + tee keep |\ + jq '.[] | "\( .html_url ) \(.files | keys | length) \(.comments) \( .description )"' |\ tr -d '"' | tac | nl |\ - while read line_num link file_num description; do - echo $line_num $link $file_num $(echo $description | cut -c -70) + while read line_num link file_num comment_num description; do + echo $line_num $link $file_num $comment_num $(echo $description | cut -c -70) done | tee $index } -- cgit v1.2.3-70-g09d2