Skip to content

Commit

Permalink
Make update-reference-docs.sh OSX compatible.
Browse files Browse the repository at this point in the history
Based on
https://unix.stackexchange.com/questions/663369/invalid-command-code-using-sed-to-replace-characters-inline

Verified this works with OSX 12.5, and Ubuntu 22.04.1.

Signed-off-by: Billy Lynch <billy@chainguard.dev>
  • Loading branch information
wlynch authored and tekton-robot committed Aug 16, 2022
1 parent 34c5af6 commit 8381d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/update-reference-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ go run github.com/ahmetb/gen-crd-api-reference-docs \
-api-dir "github.com/tektoncd/pipeline/pkg/apis" \
-template-dir "./hack/reference-docs-template" \
-out-file "./docs/pipeline-api.md"
sed -i '1s/^/<!--\n---\ntitle: Pipeline API\nlinkTitle: Pipeline API\nweight: 1000\n---\n-->\n\n/' ./docs/pipeline-api.md
sed -i".backup" '1s/^/<!--\n---\ntitle: Pipeline API\nlinkTitle: Pipeline API\nweight: 1000\n---\n-->\n\n/' ./docs/pipeline-api.md

0 comments on commit 8381d0d

Please sign in to comment.