diff options
author | typebrook <typebrook@gmail.com> | 2020-03-14 23:10:13 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-03-14 23:10:13 +0800 |
commit | d00d5378dd9c1d0bb18271dbcd768cf32df29215 (patch) | |
tree | c919ea3ab448ead0a77159028bd3647544a3641b | |
parent | 04bc794c495ea9158c86c624b2a4118442ff6abe (diff) |
Fix missing argument of sed for darwin
-rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -264,7 +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 | description=$(echo $description | sed -E -e 's/\[(.+)\]/\\e[33m[\1]\\e[0m/') |
268 | 268 | ||
269 | echo -e "$(printf "% 3s" "$index") $link $name $extra $description" \ | 269 | echo -e "$(printf "% 3s" "$index") $link $name $extra $description" \ |
270 | | cut -c -"$(tput cols)" | 270 | | cut -c -"$(tput cols)" |