summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-07-12 17:05:34 -0400
committerJoey Hess <joeyh@joeyh.name>2017-07-12 17:05:34 -0400
commit3a59749f2c0603872109a85c44234dd744d059cc (patch)
tree44805c8c346b8444e5e21e16337adf6889ed77e5
parente1025fbe1773d7e508b00b9800f28b8027c8f355 (diff)
downloadgit-repair-3a59749f2c0603872109a85c44234dd744d059cc.tar.gz
better way of finding stack built executable
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bd2ac44..d2cd567 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ PREFIX=/usr
build: Build/SysConfig.hs
$(BUILDER) build $(BUILDEROPTIONS)
if [ "$(BUILDER)" = stack ]; then \
- ln -sf $$(find .stack-work/ -name git-repair -type f | grep build/git-annex/git-repair | tail -n 1) git-repair; \
+ ln -sf $$(stack path --dist-dir)/build/git-annex/git-repair git-repair; \
else \
ln -sf dist/build/git-repair/git-repair git-repair; \
fi