Make sed macos compatible

Saves a backup file using a gitignored extension.
This commit is contained in:
Michael Schurter 2017-01-27 15:37:28 -08:00
parent 51dc39dae9
commit 822424459e
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ format:
generate: generate:
@echo "--> Running go generate" @echo "--> Running go generate"
@go generate $(PACKAGES) @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: vet:
@go tool vet 2>/dev/null ; if [ $$? -eq 3 ]; then \ @go tool vet 2>/dev/null ; if [ $$? -eq 3 ]; then \