summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-10-13 17:43:29 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-10-14 08:41:17 -0400
commitdf016e4e74dbc9c0181b9fb28c29cec08a743ade (patch)
tree7c8c7f22be6741a43cc23e12a08c5c3dcb98a472
parente46edfcf47d674731935b2ea1443cc7927e071fb (diff)
downloadhaskell-df016e4e74dbc9c0181b9fb28c29cec08a743ade.tar.gz
Make sure paths are quoted in install Makefile
Previously it would fail with this error: ``` if [ -L wrappers/ghc ]; then echo "ghc is a symlink"; fi ghc is a symlink cp: target 'dir/bin/ghc' is not a directory make: *** [Makefile:197: install_wrappers] Error 1 ``` which is because the install path contains a space. Fixes #20506
-rw-r--r--hadrian/bindist/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/hadrian/bindist/Makefile b/hadrian/bindist/Makefile
index c1888ffefa..7dea178000 100644
--- a/hadrian/bindist/Makefile
+++ b/hadrian/bindist/Makefile
@@ -32,7 +32,7 @@ define installscript
# consistent naming procedure.
if [ -L wrappers/$1 ]; then echo "$1 is a symlink"; fi
@if [ -L wrappers/$1 ]; then \
- cp -RP wrappers/$1 $2; \
+ cp -RP wrappers/$1 '$2'; \
else \
rm -f '$2' && \
$(CREATE_SCRIPT) '$2' && \