Merge pull request #380 from dvusboy/replace-placeholder-speedup
This commit is contained in:
@@ -10,7 +10,6 @@ fi
|
|||||||
# Only peform action if $FROM and $TO are different.
|
# Only peform action if $FROM and $TO are different.
|
||||||
echo "Replacing all statically built instances of $FROM with $TO."
|
echo "Replacing all statically built instances of $FROM with $TO."
|
||||||
|
|
||||||
find apps/web/.next/ apps/web/public -type f |
|
for file in $(egrep -r -l "${FROM}" apps/web/.next/ apps/web/public/); do
|
||||||
while read file; do
|
sed -i -e "s|$FROM|$TO|g" "$file"
|
||||||
sed -i "s|$FROM|$TO|g" "$file"
|
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user