From 05dde11627df93b60aaa192102ad832c3f9f96c7 Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 25 Dec 2019 12:14:59 +0800 Subject: update --- scripts/gist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index 5bfb9d6..66f022f 100755 --- a/scripts/gist +++ b/scripts/gist @@ -68,7 +68,8 @@ _edit_gist() { GIST_ID=$(cat $index | sed -n "$1"p | cut -d' ' -f2 | sed -r 's#.*/##') jq -n --arg DESC "$2" '{ description: ($DESC) }' |\ - curl -X PATCH -H "$auth_header" --data @- $github_api/gists/$GIST_ID + curl -X PATCH -H "$auth_header" --data @- $github_api/gists/$GIST_ID > /dev/null + _update } if [[ $# -eq 0 ]]; then -- cgit v1.2.3-70-g09d2