Sed error on mac

This commit is contained in:
Carlos Fenollosa 2014-06-30 15:28:51 +02:00
parent ed746d0b0c
commit e43d1e56ea

2
bb.sh
View File

@ -777,7 +777,7 @@ rebuild_index() {
# Accepts either filename as first argument, or post content at stdin # Accepts either filename as first argument, or post content at stdin
# Prints one line with space-separated tags to stdout # Prints one line with space-separated tags to stdout
tags_in_post() { 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. # Finds all posts referenced in a number of tags.