diff options
author | typebrook <typebrook@gmail.com> | 2020-02-12 22:05:34 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-02-12 22:05:34 +0800 |
commit | da7c861b33ea43c5364b1ce6cb2cf5a0ce0892b7 (patch) | |
tree | 242741628021f18b591bc5ec271069207d8dd661 /scripts | |
parent | 41f61fa5a0280c1027daff86a798dac25be0f101 (diff) |
update
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gist | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gist b/scripts/gist index bc3d99c..bb2fb42 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -69,6 +69,7 @@ getConfiguredClient() { | |||
69 | } | 69 | } |
70 | 70 | ||
71 | # Allows to call the users configured client without if statements everywhere | 71 | # Allows to call the users configured client without if statements everywhere |
72 | # TODO return false if code is not 20x | ||
72 | http_method() { | 73 | http_method() { |
73 | local METHOD=$1; shift | 74 | local METHOD=$1; shift |
74 | case "$configuredClient" in | 75 | case "$configuredClient" in |
@@ -542,7 +543,7 @@ _edit_gist() { | |||
542 | http_data=$(mktemp) | 543 | http_data=$(mktemp) |
543 | echo { \"description\": \"$(echo $DESC | sed -e 's/"/\\"/g')\" } > $http_data | 544 | echo { \"description\": \"$(echo $DESC | sed -e 's/"/\\"/g')\" } > $http_data |
544 | http_method PATCH $http_data $GITHUB_API/gists/$GIST_ID > /dev/null \ | 545 | http_method PATCH $http_data $GITHUB_API/gists/$GIST_ID > /dev/null \ |
545 | && _fetch_gists | 546 | && hint=false _fetch_gists | grep -E "^[ ]+$1" |
546 | } | 547 | } |
547 | 548 | ||
548 | usage() { | 549 | usage() { |