diff options
-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 |