Replace lowercase webapp URL placeholder
This commit is contained in:
@@ -11,3 +11,10 @@ echo "Replacing all statically built instances of $FROM with $TO."
|
||||
for file in $(egrep -r -l "${FROM}" apps/web/.next/ apps/web/public/); do
|
||||
sed -i -e "s|$FROM|$TO|g" "$file"
|
||||
done
|
||||
|
||||
LOWER_FROM=$(printf "%s" "$FROM" | tr "[:upper:]" "[:lower:]")
|
||||
if [ "${LOWER_FROM}" != "${FROM}" ]; then
|
||||
for file in $(egrep -r -l "${LOWER_FROM}" apps/web/.next/ apps/web/public/); do
|
||||
sed -i -e "s|$LOWER_FROM|$TO|g" "$file"
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user