diff options
| author | typebrook <typebrook@gmail.com> | 2020-03-09 11:06:39 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-03-09 11:06:39 +0800 |
| commit | d7f13db9a19e220fb69648846e3639abdfdb5cc2 (patch) | |
| tree | 5b18a362501453d1f916d22fdb17639019b8d420 | |
| parent | e2ab9b1cb9485d851fafa06cee09a0cea863aa6b (diff) | |
update
| -rwxr-xr-x | gist | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -264,6 +264,7 @@ _show_list() { | |||
| 264 | local repo; repo=$folder/${link##*/} | 264 | local repo; repo=$folder/${link##*/} |
| 265 | local extra; extra=$(_check_repo_status "$repo" "$blob_code") | 265 | local extra; extra=$(_check_repo_status "$repo" "$blob_code") |
| 266 | [[ -z $extra ]] && extra="$file_num $comment_num" | 266 | [[ -z $extra ]] && extra="$file_num $comment_num" |
| 267 | description=$(echo $description | sed -E 's/\[(.+)\]/\\e[33m[\1]\\e[0m/') | ||
| 267 | 268 | ||
| 268 | echo -e "$(printf "% 3s" "$index") $link $name $extra $description" \ | 269 | echo -e "$(printf "% 3s" "$index") $link $name $extra $description" \ |
| 269 | | cut -c -"$(tput cols)" | 270 | | cut -c -"$(tput cols)" |