mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
fix(k8s-alpha): escape the image for sed as the install scripts do
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3ff0a640fd
commit
9379f5c059
1 file changed
+1
-1
@@ -4,7 +4,7 @@
|
||||
# rendered: usage: render-k8s-alpha-image.sh IMAGE IN OUT
|
||||
set -euo pipefail
|
||||
[[ $# -eq 3 ]] || { echo "usage: $0 IMAGE IN OUT" >&2; exit 2; }
|
||||
image_sed="$(printf '%s' "$1" | sed 's/[\/&]/\&/g')"
|
||||
image_sed="$(printf '%s' "$1" | sed 's/[\/&]/\\&/g')"
|
||||
sed -e "s/sw-block:local/${image_sed}/g" \
|
||||
-e "s/imagePullPolicy: Never/imagePullPolicy: IfNotPresent/g" \
|
||||
"$2" >"$3"
|
||||
|
||||
Reference in new issue
Block a user