Fix FakeYou build script (?) issue with sed

This commit is contained in:
Brandon Thomas committed 2022-06-19 03:19:52 -04:00
1 parent 4b874a0cfa
commit 020e8d63a8
1 file changed
+2 -1
+2 -1
View File
@@ -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/