summaryrefslogtreecommitdiffhomepage
path: root/scripts/gist
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-12-25 12:14:59 +0800
committertypebrook <typebrook@gmail.com>2019-12-25 12:14:59 +0800
commit05dde11627df93b60aaa192102ad832c3f9f96c7 (patch)
treed7164f0101bd02d4df720c66909d4ea1aaa6bb29 /scripts/gist
parentc4b487095fae8eff858ccf7e5d0958652c78b92a (diff)
update
Diffstat (limited to 'scripts/gist')
-rwxr-xr-xscripts/gist3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gist b/scripts/gist
index 5bfb9d6..66f022f 100755
--- a/scripts/gist
+++ b/scripts/gist
@@ -68,7 +68,8 @@ _edit_gist() {
68 GIST_ID=$(cat $index | sed -n "$1"p | cut -d' ' -f2 | sed -r 's#.*/##') 68 GIST_ID=$(cat $index | sed -n "$1"p | cut -d' ' -f2 | sed -r 's#.*/##')
69 69
70 jq -n --arg DESC "$2" '{ description: ($DESC) }' |\ 70 jq -n --arg DESC "$2" '{ description: ($DESC) }' |\
71 curl -X PATCH -H "$auth_header" --data @- $github_api/gists/$GIST_ID 71 curl -X PATCH -H "$auth_header" --data @- $github_api/gists/$GIST_ID > /dev/null
72 _update
72} 73}
73 74
74if [[ $# -eq 0 ]]; then 75if [[ $# -eq 0 ]]; then