From e823fd2b96f8e12a3ebd1de005ffa401299cbf9c Mon Sep 17 00:00:00 2001 From: typebrook Date: Sun, 2 Feb 2020 22:13:07 +0800 Subject: update --- scripts/gist | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/gist b/scripts/gist index 088fc13..5874bc5 100755 --- a/scripts/gist +++ b/scripts/gist @@ -47,7 +47,6 @@ # * show this help message # gist (help | h) -# TODO parallel branch works with wget and other stuff # TODO new command "user" to fetch other user's gists # TODO grep mode for description, file content # TODO push github.com (may need new token) @@ -436,7 +435,7 @@ _edit_gist() { echo -n 'Type new description: ' read DESC < /dev/tty echo "{ \"description\": \"$DESC\" }" \ - | curl -X PATCH -H "$AUTH_HEADER" --data @- $GITHUB_API/gists/$GIST_ID > /dev/null \ + | http_method PATCH $GITHUB_API/gists/$GIST_ID > /dev/null \ && _update } -- cgit v1.2.3-70-g09d2