tail the find in dist-newstyle

unfortunately old builds for old versions can linger in there
This commit is contained in:
Joey Hess 2020-06-18 11:23:05 -04:00
parent 572369ced2
commit 0f43efa15b
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -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; \