From da7c861b33ea43c5364b1ce6cb2cf5a0ce0892b7 Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 12 Feb 2020 22:05:34 +0800 Subject: update --- scripts/gist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/gist b/scripts/gist index bc3d99c..bb2fb42 100755 --- a/scripts/gist +++ b/scripts/gist @@ -69,6 +69,7 @@ getConfiguredClient() { } # Allows to call the users configured client without if statements everywhere +# TODO return false if code is not 20x http_method() { local METHOD=$1; shift case "$configuredClient" in @@ -542,7 +543,7 @@ _edit_gist() { http_data=$(mktemp) echo { \"description\": \"$(echo $DESC | sed -e 's/"/\\"/g')\" } > $http_data http_method PATCH $http_data $GITHUB_API/gists/$GIST_ID > /dev/null \ - && _fetch_gists + && hint=false _fetch_gists | grep -E "^[ ]+$1" } usage() { -- cgit v1.2.3-70-g09d2