From 05a5ed0b11093288a351fc028a91cd22a635223f Mon Sep 17 00:00:00 2001 From: Joachim Meyer Date: Tue, 7 May 2024 16:11:18 -0600 Subject: [PATCH] Build script - Fix `sed` command for team yaml (#167) The `sed` command on Mac OS X behaves differently than on Linux. The `-i` option is for naming a backup file on OSX. Hopefully fixes #165 --- scripts/build_team_yaml.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build_team_yaml.sh b/scripts/build_team_yaml.sh index 6a17c91..5f45ec6 100755 --- a/scripts/build_team_yaml.sh +++ b/scripts/build_team_yaml.sh @@ -14,7 +14,8 @@ find . -type f -name '*.yaml' \ sort | xargs -I '{}' cat '{}' > team_people.yaml # Indent to proper yaml -sed -i 's/^/ /' team_people.yaml +sed -i.bkp -e 's/^/ /' team_people.yaml +rm team_people.yaml.bkp # Create the final team file cat header.yaml team_people.yaml > team.yaml