diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-10-13 17:43:29 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-10-14 08:41:17 -0400 |
commit | df016e4e74dbc9c0181b9fb28c29cec08a743ade (patch) | |
tree | 7c8c7f22be6741a43cc23e12a08c5c3dcb98a472 | |
parent | e46edfcf47d674731935b2ea1443cc7927e071fb (diff) | |
download | haskell-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/Makefile | 2 |
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' && \ |