Merge pull request #23 from TerraTech/fix_bashism

Makefile: Fix bashism when building on Ubuntu + dash
This commit is contained in:
Tim Hockin 2017-02-15 10:46:09 -06:00 committed by GitHub
commit cf2f9135f1
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ container: .container-$(DOTFILE_IMAGE) container-name
Dockerfile.in > .dockerfile-$(ARCH)
@docker build -t $(IMAGE):$(VERSION) -f .dockerfile-$(ARCH) .
@docker images -q $(IMAGE):$(VERSION) > $@
@if [ "$(ARCH)" == "amd64" ]; then \
@if [ "$(ARCH)" = "amd64" ]; then \
docker tag $(IMAGE):$(VERSION) $(LEGACY_IMAGE):$(VERSION); \
fi
@ -123,7 +123,7 @@ push: .push-$(DOTFILE_IMAGE) push-name
.push-$(DOTFILE_IMAGE): .container-$(DOTFILE_IMAGE)
@gcloud docker push $(IMAGE):$(VERSION)
@docker images -q $(IMAGE):$(VERSION) > $@
@if [ "$(ARCH)" == "amd64" ]; then \
@if [ "$(ARCH)" = "amd64" ]; then \
gcloud docker push $(LEGACY_IMAGE):$(VERSION); \
fi