From 822424459ea955dac0abcb0b9ace95a51df7ec1b Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Fri, 27 Jan 2017 15:37:28 -0800 Subject: [PATCH] Make sed macos compatible Saves a backup file using a gitignored extension. --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index b3ad7d3f8..1cbd2678e 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -45,7 +45,7 @@ format: generate: @echo "--> Running go generate" @go generate $(PACKAGES) - @sed -i -e 's|github.com/hashicorp/nomad/vendor/github.com/ugorji/go/codec|github.com/ugorji/go/codec|' nomad/structs/structs.generated.go + @sed -i.old -e 's|github.com/hashicorp/nomad/vendor/github.com/ugorji/go/codec|github.com/ugorji/go/codec|' nomad/structs/structs.generated.go vet: @go tool vet 2>/dev/null ; if [ $$? -eq 3 ]; then \