Skip to content

Commit 70b89f8

Browse files
Michael J Grubergitster
authored andcommitted
Makefile: reenable install with NO_CURL
Setting NO_CURL leaves some variables like REMOTE_CURL_ALIASES empty, which creates no fun when for-looping over $(REMOTE_CURL_ALIASES) unconditionally. Make it conditional. Reported-by: Paul Walker <[email protected]> Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dfea790 commit 70b89f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,12 +1841,13 @@ endif
18411841
ln -s "git$X" "$$execdir/$$p" 2>/dev/null || \
18421842
cp "$$execdir/git$X" "$$execdir/$$p" || exit; \
18431843
done; } && \
1844-
{ for p in $(REMOTE_CURL_ALIASES); do \
1844+
{ test x"$(REMOTE_CURL_ALIASES)" = x || \
1845+
{ for p in $(REMOTE_CURL_ALIASES); do \
18451846
$(RM) "$$execdir/$$p" && \
18461847
ln "$$execdir/git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
18471848
ln -s "git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
18481849
cp "$$execdir/git-remote-http$X" "$$execdir/$$p" || exit; \
1849-
done; } && \
1850+
done; } ; } && \
18501851
./check_bindir "z$$bindir" "z$$execdir" "$$bindir/git-add$X"
18511852

18521853
install-doc:

0 commit comments

Comments
 (0)