File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,15 @@ BUILD_OS := $(shell uname -s)
106
106
107
107
SHA512SUM =$(shell command -v sha512sum || echo "shasum -a 512")
108
108
109
+ # check which "flavor" of SED is being used as the flags are different between BSD and GNU sed.
110
+ # BSD sed does not support "--version"
111
+ SED_VERSION := $(shell sed --version 2>/dev/null | head -n 1 | cut -d' ' -f4)
112
+ ifeq ($(SED_VERSION ) ,)
113
+ SED = sed -i ''
114
+ else
115
+ SED = sed -i
116
+ endif
117
+
109
118
# gvisor tag to automatically push changes to
110
119
# to update minikubes default, update deploy/addons/gvisor
111
120
GVISOR_TAG ?= v0.0.1
@@ -728,10 +737,6 @@ local-kicbase: ## Builds the kicbase image and tags it local/kicbase:latest and
728
737
docker tag local/kicbase:$(KIC_VERSION ) local/kicbase:latest
729
738
docker tag local/kicbase:$(KIC_VERSION ) local/kicbase:$(KIC_VERSION ) -$(COMMIT_SHORT )
730
739
731
- SED = sed -i
732
- ifeq ($(GOOS ) ,darwin)
733
- SED = sed -i ''
734
- endif
735
740
736
741
.PHONY : local-kicbase-debug
737
742
local-kicbase-debug : local-kicbase # # Builds a local kicbase image and switches source code to point to it
You can’t perform that action at this time.
0 commit comments