Skip to content

Commit ef02f2d

Browse files
committed
scaffold: genclient.sh: use perl instead of sed
1 parent 42e95bf commit ef02f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scaffold/templates/hack/genclient.sh.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ ln -s "$BASEDIR"/api/{{ .groupVersion }} "$TEMPDIR"/apis/{{ .groupName }}/{{ .gr
3838
--plural-exceptions {{ .kind }}:{{ .resource }}
3939

4040
find "$TEMPDIR"/pkg/client -name "*.go" -exec \
41-
sed -i -e "s#{{ .goModule | regexQuoteMeta }}/tmp/gen/apis/{{ .groupName | regexQuoteMeta }}/{{ .groupVersion | regexQuoteMeta }}#{{ .goModule }}/api/{{ .groupVersion }}#g" \
41+
perl -pi -e "s#{{ .goModule | regexQuoteMeta }}/tmp/gen/apis/{{ .groupName | regexQuoteMeta }}/{{ .groupVersion | regexQuoteMeta }}#{{ .goModule }}/api/{{ .groupVersion }}#g" \
4242
{} +
4343

4444
rm -rf "$BASEDIR"/pkg/client

0 commit comments

Comments
 (0)