aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/gist
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-01-13 00:22:03 +0800
committertypebrook <typebrook@gmail.com>2020-01-13 00:22:03 +0800
commit0b53806a2c0b398f2c7c631220f51d5615429ecd (patch)
tree07e86a091ad2f521febd169ef712ca8d139630f8 /scripts/gist
parent5b0209196766e346fe0d5b880a4ff9086f238758 (diff)
update
Diffstat (limited to 'scripts/gist')
-rwxr-xr-xscripts/gist3
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() {