From 020e8d63a8d8be6438694475b1bb1afcc2cf5c4f Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sun, 19 Jun 2022 03:19:52 -0400 Subject: [PATCH] Fix FakeYou build script (?) issue with sed --- build-fakeyou.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-fakeyou.sh b/build-fakeyou.sh index 7dac19f95c..4c23a2c458 100755 --- a/build-fakeyou.sh +++ b/build-fakeyou.sh @@ -13,7 +13,8 @@ mv packages/fakeyou/build/ fakeyou/build/ # COMMIT_REF is defined by Netlify to be the commit SHA # We want a short 8 character reference. SHORT_SHA=$(echo "${COMMIT_REF}" | cut -c1-8) -find . -type f -exec sed -i '' -e "s/CURRENT_STORYTELLER_VERSION/${SHORT_SHA}/g" {} + +# find . -type f -exec sed -i '' -e "s/CURRENT_STORYTELLER_VERSION/${SHORT_SHA}/g" {} + # Mac-friendly version +find . -type f -exec sed -i "s/CURRENT_STORYTELLER_VERSION/${SHORT_SHA}/g" {} + echo "Copying redirects configuration to Netlify build dir..." cp _redirects fakeyou/build/