Skip to content

Commit c986f96

Browse files
committed
hack/genclient.sh: fix sed usage to work with both macos and linux
1 parent 28d94fd commit c986f96

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 "" "s#{{ .goModule | regexQuoteMeta }}/tmp/gen/apis/{{ .groupName | regexQuoteMeta }}/{{ .groupVersion | regexQuoteMeta }}#{{ .goModule }}/api/{{ .groupVersion }}#g" \
41+
sed -i -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)