From d3a16443ad46083a3310da630e29fb886d5345af Mon Sep 17 00:00:00 2001 From: typebrook Date: Mon, 13 Jan 2020 11:20:39 +0800 Subject: update --- scripts/gist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index 3f511e5..380a369 100755 --- a/scripts/gist +++ b/scripts/gist @@ -66,8 +66,8 @@ _update() { tee jojo |\ jq '.[] | "\(.html_url) \([.files[] | .raw_url]) \(.files | keys | length) \(.comments) \(.description)"' |\ tac | nl |\ - while read line_num link blobs file_num comment_num description; do - blob_code=$(echo $blobs | jq -r '.[]' | sed -r 's#.*raw/(.*)/.*#\1#' | sort | cut -c -7 | paste -sd '-') + while read line_num link file_url_array file_num comment_num description; do + blob_code=$(echo $file_url_array | jq -r '.[]' | sed -r 's#.*raw/(.*)/.*#\1#' | sort | cut -c -7 | paste -sd '-') echo $line_num $link $blob_code $file_num $comment_num $(echo $description | cut -c -70) | tr -d '"' done > $index && \ _show_list -- cgit v1.2.3-70-g09d2