diff options
| author | typebrook <typebrook@gmail.com> | 2019-12-25 12:14:59 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-12-25 12:14:59 +0800 |
| commit | 05dde11627df93b60aaa192102ad832c3f9f96c7 (patch) | |
| tree | d7164f0101bd02d4df720c66909d4ea1aaa6bb29 | |
| parent | c4b487095fae8eff858ccf7e5d0958652c78b92a (diff) | |
update
| -rwxr-xr-x | scripts/gist | 3 |
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 | ||
| 74 | if [[ $# -eq 0 ]]; then | 75 | if [[ $# -eq 0 ]]; then |