remove grep from server makefile (#1614)

awk can do all the job.
This commit is contained in:
Igor Pashev 2019-02-19 08:50:54 +02:00 committed by Shahidh K Muhammed
parent 76b51216fc
commit 7ccc91ec4f

View File

@ -3,7 +3,7 @@ registry := hasura
version := $(shell ../scripts/get-version.sh)
# TODO: needs to be replaced with something like yq
stack_resolver := $(shell grep '^resolver:' stack.yaml | awk '{print $$2;}')
stack_resolver := $(shell awk '/^resolver:/ {print $$2;}' stack.yaml)
packager_ver := 1.2
project_dir := $(shell pwd)
build_dir := $(project_dir)/$(shell stack path --dist-dir)/build