From 6f9098d0557619282998aa3b0587178949472b87 Mon Sep 17 00:00:00 2001 From: David Young Date: Wed, 3 Jun 2020 13:58:27 +1200 Subject: [PATCH] Sed was a little borked --- scripts/markdown-to-markua.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/markdown-to-markua.sh b/scripts/markdown-to-markua.sh index 5a8479e..83eb89f 100755 --- a/scripts/markdown-to-markua.sh +++ b/scripts/markdown-to-markua.sh @@ -5,10 +5,10 @@ do echo "Processing $file..." # Markua doesn't know what to do with 4 backticks (````), so convert to 3: - sed -ie "s/\`\`\`\`/\`\`\`/g" $file + sed -i "s/\`\`\`\`/\`\`\`/g" $file # Can't use relative paths in a book, so make all paths static - sed -ie 's/(\//(https:\/\/geek-cookbook.funkypenguin.co.nz\/)/g' $file + sed -i 's/(\//(https:\/\/geek-cookbook.funkypenguin.co.nz\/)/g' $file # strip emojis tr -cd '\11\12\15\40-\176' < $file > $file-clean