From 993099b03a06967489dcfb9e35f897ff4246d84e Mon Sep 17 00:00:00 2001 From: sljeff Date: Fri, 30 Sep 2022 10:02:44 +0800 Subject: [PATCH] fix: wrong wholename in entrypoint --- deploy/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/entrypoint.sh b/deploy/entrypoint.sh index 0dcf0de7..25070a05 100644 --- a/deploy/entrypoint.sh +++ b/deploy/entrypoint.sh @@ -22,7 +22,7 @@ function apply_path { if [ -n "$configValue" ] && [ -n "$envValue" ]; then # replace all echo "Replace: ${configValue} with: ${envValue}" - 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" + find $nextFolder \( -type d -name cache -prune \) \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#$configValue#$envValue#g" fi done < $envFilename }