Use rm -rf instead of sudo when removing the temp dir

This commit is contained in:
Arto Jantunen 2018-01-23 13:35:02 +02:00
parent c3ad5ef0ea
commit 0eddfe5e6d

View file

@ -39,7 +39,7 @@ docker-build: vendor
CGO_ENABLED=0 go build -a -tags netgo -o /build/adapter github.com/directxman12/k8s-prometheus-adapter/cmd/adapter"
docker build -t $(REGISTRY)/$(IMAGE)-$(ARCH):$(VERSION) $(TEMP_DIR)
sudo rm -r $(TEMP_DIR)
rm -rf $(TEMP_DIR)
push-%:
$(MAKE) ARCH=$* docker-build