fix: env replacement

This commit is contained in:
sljeff
2022-09-30 09:43:41 +08:00
parent 92bc67819d
commit 74a9e2ce3b
+1 -1
View File
@@ -22,7 +22,7 @@ function apply_path {
if [ -n "$configValue" ] && [ -n "$envValue" ]; then
# replace all
echo "Replace: ${configValue} with: ${envValue}"
find $nextFolder \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#$configValue#$envValue#g"
find $nextFolder \( -type d -wholename .next/cache -prune \) \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#$configValue#$envValue#g"
fi
done < $envFilename
}