From e29494cc3ada22ae3618edd3193801b6bee7470a Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 25 Dec 2019 17:44:37 +0800 Subject: update --- scripts/gist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index 66f022f..7dc06e2 100755 --- a/scripts/gist +++ b/scripts/gist @@ -47,7 +47,8 @@ _clean_repos() { _show_detail() { GIST_ID=$(cat $index | sed -n "$1"p | cut -d' ' -f2 | sed -r 's#.*/##') - curl -s -H "$auth_header" $github_api/gists/$GIST_ID + curl -s -H "$auth_header" $github_api/gists/$GIST_ID |\ + jq '{site: .html_url, API: .url, created_at: .created_at, updated_at: .updated_at, files: (.files | keys)}' } # create a new gist with a file and description -- cgit v1.2.3-70-g09d2