浏览代码

Sed error on mac

Carlos Fenollosa 11 年之前
父节点
当前提交
e43d1e56ea
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bb.sh

+ 1 - 1
bb.sh

@@ -777,7 +777,7 @@ rebuild_index() {
 # Accepts either filename as first argument, or post content at stdin
 # Prints one line with space-separated tags to stdout
 tags_in_post() {
-    sed -n "/^<p>$template_tags_line_header/{s/^<p>$template_tags_line_header//;s/<[^>]*>//g;s/[ ,]\+/ /g;p}" $1
+    sed -n "/^<p>$template_tags_line_header/{s/^<p>$template_tags_line_header//;s/<[^>]*>//g;s/[ ,]\+/ /g;p;}" $1
 }
 
 # Finds all posts referenced in a number of tags.