From 1ffcf709066caf4acd13062e4ee520c537688e17 Mon Sep 17 00:00:00 2001 From: typebrook Date: Tue, 4 Feb 2020 11:05:29 +0800 Subject: update --- scripts/gist | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/gist b/scripts/gist index cf312a6..d614c98 100755 --- a/scripts/gist +++ b/scripts/gist @@ -250,11 +250,11 @@ _update() { echo local route="users/$user/gists" local mark="" - local filter='/^[^s]/ d' + local filter='/^[^s]/ d; /^$/ d' if [[ "$1" =~ ^(star|s)$ ]];then route="gists/starred" mark="s" - filter='/^[s]/ d' + filter='/^[s]/ d; /^$/ d' fi result=$(http_method GET $GITHUB_API/$route | _parse_response) @@ -431,7 +431,6 @@ _create_gist() { echo -e "$files\n$description" \ | AccessJsonElement "$(_gist_body)" > $http_data \ && http_method POST $GITHUB_API/gists \ - | tee result \ | sed '1 s/^/[/; $ s/$/]/' \ | _parse_response $(( $(sed '/^s/ d' $INDEX | wc -l) +1 )) >> $INDEX -- cgit v1.2.3-70-g09d2