Download raw body.
useless grep
awk is powerful enough :)
diff /home/op/w/got
commit - ad8ccd554bb28e347cf0e997429a408457280182
path + /home/op/w/got
blob - 7c2992be4f288b02a06aa7cc8ee97b9df22737f2
file + regress/gotd/Makefile
--- regress/gotd/Makefile
+++ regress/gotd/Makefile
@@ -5,12 +5,12 @@ GOTD_DEVUSER_HOME!=userinfo $(GOTD_DEVUSER) | grep ^di
GOTD_TEST_ROOT=/tmp
GOTD_DEVUSER?=gotdev
-GOTD_DEVUSER_HOME!=userinfo $(GOTD_DEVUSER) | grep ^dir | awk '{print $$2}'
+GOTD_DEVUSER_HOME!=userinfo $(GOTD_DEVUSER) | awk '/^dir/ {print $$2}'
GOTD_TEST_REPO!?=mktemp -d "$(GOTD_TEST_ROOT)/gotd-test-repo-XXXXXXXXX"
GOTD_TEST_REPO_URL=ssh://${GOTD_DEVUSER}@127.0.0.1/test-repo
GOTD_TEST_USER?=${LOGNAME}
-GOTD_TEST_USER_HOME!=userinfo $(GOTD_TEST_USER) | grep ^dir | awk '{print $$2}'
+GOTD_TEST_USER_HOME!=userinfo $(GOTD_TEST_USER) | awk '/^dir/ {print $$2}'
# gotd.conf parameters
GOTD_USER?=got
useless grep