From da862fee12e5a34be604732d9433c869088366f4 Mon Sep 17 00:00:00 2001 From: Pedro Ignacio Date: Tue, 3 Dec 2024 22:55:07 -0300 Subject: [PATCH] Updating the Makefile script on the website to work natively with MacOS. Signed-off-by: Pedro Ignacio --- website/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/Makefile b/website/Makefile index 051a99512..b14b8e510 100644 --- a/website/Makefile +++ b/website/Makefile @@ -14,6 +14,7 @@ deps: # Update all imported markdown files to work as standalone hugo pages (except READMEs, see below) # sed command is configured for the Netlify ubuntu env + # If you're NOT running this on a mac, you'll need to remove the empty string after -i (line 25) find root -type f -name '*.md' | while IFS= read -r file; do \ base_name=$$(basename "$$file" .md); \ if [ "$$file" = "/_index.md" -o "$$base_name" = "README" ]; then \ @@ -21,7 +22,7 @@ deps: fi; \ title_case=$$(echo "$$base_name" | sed -e 's/-/ /g' -e 's/\b\(.\)/\u\1/g' | sed 's/cncf/CNCF/Ig'); \ text_to_prepend="---\ntitle: \"$$title_case\"\n---\n"; \ - sed -i "1s/^/$$text_to_prepend/" "$$file"; \ + sed -i "" "1s/^/$$text_to_prepend/" "$$file"; \ done # Set up Navbar and Sidebar contents