Skip to content

Commit c6b1147

Browse files
authored
Use SED_INPLACE generic sed command
1 parent 9703ef4 commit c6b1147

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ docker-multi-arch-push-manifest:
203203
@hash manifest-tool > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
204204
go get -u github.com/estesp/manifest-tool; \
205205
fi
206-
sed -i "s;gitea/gitea;$(DOCKER_IMAGE);g" $(DOCKER_MANIFEST) #Replace if using custom image name
206+
$(SED_INPLACE) "s;gitea/gitea;$(DOCKER_IMAGE);g" $(DOCKER_MANIFEST) #Replace if using custom image name
207207
@manifest-tool --docker-cfg $HOME/.docker/ push from-spec $(DOCKER_MANIFEST) #Up new references
208-
sed -i "s;$(DOCKER_IMAGE);gitea/gitea;g" $(DOCKER_MANIFEST) #Revert back config
208+
$(SED_INPLACE) "s;$(DOCKER_IMAGE);gitea/gitea;g" $(DOCKER_MANIFEST) #Revert back config
209209

210210
.PHONY: release
211211
release: release-dirs release-windows release-linux release-darwin release-copy release-check

0 commit comments

Comments
 (0)