summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-02-02 22:13:07 +0800
committertypebrook <typebrook@gmail.com>2020-02-02 22:13:07 +0800
commite823fd2b96f8e12a3ebd1de005ffa401299cbf9c (patch)
tree09253627126ebdd6c9e3e1a3557bad376c5fba1b
parent08b3d8510b23fb289cf216d1f8ea5f98b2062f97 (diff)
update
-rwxr-xr-xscripts/gist3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/gist b/scripts/gist
index 088fc13..5874bc5 100755
--- a/scripts/gist
+++ b/scripts/gist
@@ -47,7 +47,6 @@
47# * show this help message 47# * show this help message
48# gist (help | h) 48# gist (help | h)
49 49
50# TODO parallel branch works with wget and other stuff
51# TODO new command "user" to fetch other user's gists 50# TODO new command "user" to fetch other user's gists
52# TODO grep mode for description, file content 51# TODO grep mode for description, file content
53# TODO push github.com (may need new token) 52# TODO push github.com (may need new token)
@@ -436,7 +435,7 @@ _edit_gist() {
436 echo -n 'Type new description: ' 435 echo -n 'Type new description: '
437 read DESC < /dev/tty 436 read DESC < /dev/tty
438 echo "{ \"description\": \"$DESC\" }" \ 437 echo "{ \"description\": \"$DESC\" }" \
439 | curl -X PATCH -H "$AUTH_HEADER" --data @- $GITHUB_API/gists/$GIST_ID > /dev/null \ 438 | http_method PATCH $GITHUB_API/gists/$GIST_ID > /dev/null \
440 && _update 439 && _update
441} 440}
442 441