diff options
-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 |