diff options
author | typebrook <typebrook@gmail.com> | 2019-12-25 17:44:37 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-12-25 17:44:37 +0800 |
commit | e29494cc3ada22ae3618edd3193801b6bee7470a (patch) | |
tree | fdfdd2a1a5c0eabd34af3254461ce7319ad6c1fc /scripts | |
parent | ba164cec021eeb5354819ee51611ffcce1b681c2 (diff) |
update
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gist | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gist b/scripts/gist index 66f022f..7dc06e2 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -47,7 +47,8 @@ _clean_repos() { | |||
47 | 47 | ||
48 | _show_detail() { | 48 | _show_detail() { |
49 | GIST_ID=$(cat $index | sed -n "$1"p | cut -d' ' -f2 | sed -r 's#.*/##') | 49 | GIST_ID=$(cat $index | sed -n "$1"p | cut -d' ' -f2 | sed -r 's#.*/##') |
50 | curl -s -H "$auth_header" $github_api/gists/$GIST_ID | 50 | curl -s -H "$auth_header" $github_api/gists/$GIST_ID |\ |
51 | jq '{site: .html_url, API: .url, created_at: .created_at, updated_at: .updated_at, files: (.files | keys)}' | ||
51 | } | 52 | } |
52 | 53 | ||
53 | # create a new gist with a file and description | 54 | # create a new gist with a file and description |