aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorMichael Reed <michael@michaelreed.io>2017-07-09 16:02:57 -0400
committerMichael Reed <michael@michaelreed.io>2017-07-09 16:04:59 -0400
commitdb74ded167e78a529c3d8cff400509dece239024 (patch)
tree809d1dfdfb534603ee852e1324df1298c6cc6766 /www
parente07fe644fb9d1cadb137a57d6aad836cfd6bef83 (diff)
downloadlibrebootfr-db74ded167e78a529c3d8cff400509dece239024.tar.gz
librebootfr-db74ded167e78a529c3d8cff400509dece239024.zip
docs/index.sh: Fix sed(1) invocation on OpenBSD
This is the same idea as 497a49162f7c8b5c1d7c653087b0ac6c8e5765f9. Without this patch, the following errors occur when running index.sh: sed: 1: "news/new-mailing-lists. ...: extra characters at the end of n command sed: 1: "news/andrew-robbins-new ...: extra characters at the end of n command sed: 1: "news/formalised-structu ...: extra characters at the end of n command sed: 1: "news/proposal-rejoin-gn ...: extra characters at the end of n command sed: 1: "news/unity.bare.html": extra characters at the end of n command
Diffstat (limited to 'www')
-rwxr-xr-xwww/index.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/index.sh b/www/index.sh
index 18aad44b..4d7d2292 100755
--- a/www/index.sh
+++ b/www/index.sh
@@ -60,7 +60,7 @@ rss() {
for f in $FILES
do
# render content and escape
- desc=$(sed ${f%.md}.bare.html -e 's/</\&lt;/g' | sed -e 's/>/\&gt;/g')
+ desc=$(sed -e 's/</\&lt;/g' ${f%.md}.bare.html | sed -e 's/>/\&gt;/g')
url="${f%.md}.html"
printf '%s\n' '<item>'