From d00d5378dd9c1d0bb18271dbcd768cf32df29215 Mon Sep 17 00:00:00 2001 From: typebrook Date: Sat, 14 Mar 2020 23:10:13 +0800 Subject: Fix missing argument of sed for darwin --- gist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gist b/gist index 74a0f85..a5d91c7 100755 --- a/gist +++ b/gist @@ -264,7 +264,7 @@ _show_list() { local repo; repo=$folder/${link##*/} local extra; extra=$(_check_repo_status "$repo" "$blob_code") [[ -z $extra ]] && extra="$file_num $comment_num" - description=$(echo $description | sed -E 's/\[(.+)\]/\\e[33m[\1]\\e[0m/') + description=$(echo $description | sed -E -e 's/\[(.+)\]/\\e[33m[\1]\\e[0m/') echo -e "$(printf "% 3s" "$index") $link $name $extra $description" \ | cut -c -"$(tput cols)" -- cgit v1.2.3-70-g09d2