From 0f43efa15b572f787a8e638ae4718521f13ef825 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 18 Jun 2020 11:23:05 -0400 Subject: [PATCH] tail the find in dist-newstyle unfortunately old builds for old versions can linger in there --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7dbb77d649..15d6183fc9 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,7 @@ git-annex: tmp/configure-stamp ln -sf $$(stack path $(BUILDERCOMMONOPTIONS) --dist-dir)/build/git-annex/git-annex git-annex; \ else \ if [ -d dist-newstyle ]; then \ - ln -sf $$(find dist-newstyle/ -executable -type f |grep 'git-annex$$') git-annex; \ + ln -sf $$(find dist-newstyle/ -executable -type f | grep 'git-annex$$' | tail -n1) git-annex; \ else \ ln -sf dist/build/git-annex/git-annex git-annex; \ fi; \