diff options
author | typebrook <typebrook@gmail.com> | 2020-01-13 00:22:03 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-01-13 00:22:03 +0800 |
commit | 0b53806a2c0b398f2c7c631220f51d5615429ecd (patch) | |
tree | 07e86a091ad2f521febd169ef712ca8d139630f8 /scripts/gist | |
parent | 5b0209196766e346fe0d5b880a4ff9086f238758 (diff) |
update
Diffstat (limited to 'scripts/gist')
-rwxr-xr-x | scripts/gist | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gist b/scripts/gist index 80996b1..1e83612 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -66,7 +66,7 @@ _update() { | |||
66 | tac | nl |\ | 66 | tac | nl |\ |
67 | while read line_num link blobs file_num comment_num description; do | 67 | while read line_num link blobs file_num comment_num description; do |
68 | blob_code=$(echo $blobs | jq -r '.[]' | sed -r 's#.*raw/(.*)/.*#\1#' | sort | cut -c -7 | paste -sd '-') | 68 | blob_code=$(echo $blobs | jq -r '.[]' | sed -r 's#.*raw/(.*)/.*#\1#' | sort | cut -c -7 | paste -sd '-') |
69 | echo $line_num $link $blob_code $file_num $comment_num $(echo $description | cut -c -80) | tr -d '"' | 69 | echo $line_num $link $blob_code $file_num $comment_num $(echo $description | cut -c -70) | tr -d '"' |
70 | done > $index && \ | 70 | done > $index && \ |
71 | _show_list | 71 | _show_list |
72 | } | 72 | } |
@@ -88,6 +88,7 @@ _sync_repos() { | |||
88 | [[ $(git rev-parse origin/master) == $(git rev-parse master) ]] && \ | 88 | [[ $(git rev-parse origin/master) == $(git rev-parse master) ]] && \ |
89 | git pull | 89 | git pull |
90 | done | 90 | done |
91 | echo Everything is fine! | ||
91 | } | 92 | } |
92 | 93 | ||
93 | _gist_id() { | 94 | _gist_id() { |