From 5ff294050b27f36eaea1ab19ef3a65bde7a07bf5 Mon Sep 17 00:00:00 2001 From: typebrook Date: Sun, 12 Jan 2020 01:03:25 +0800 Subject: update --- scripts/gist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index b55012b..007032b 100755 --- a/scripts/gist +++ b/scripts/gist @@ -107,7 +107,7 @@ _show_detail() { jq '.[] | {user: .user.login, created_at: .created_at, updated_at: .updated_at, body: .body}' } -# create a new gist with a file and description +# create a new gist with files # TODO support folder of files _create_gist() { echo -n 'description: ' @@ -124,7 +124,7 @@ _create_gist() { description: ($DESC) }' |\ curl -s -H "$auth_header" --data @- $github_api/gists > /dev/null && \ - _update + _update && _sync_repos } # update description of a gist -- cgit v1.2.3-70-g09d2