diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-10-13 17:43:29 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2021-10-13 17:45:53 +0100 |
commit | 1d9fd952c6c6b4acc2debeaa27a5f7dbce8fc7af (patch) | |
tree | ce10889cfa7f8ec5950fcd9dcf2979afc93dbd82 | |
parent | 19cd403bced51bc27a11f0257c25497154e86889 (diff) | |
download | haskell-1d9fd952c6c6b4acc2debeaa27a5f7dbce8fc7af.tar.gz |
Make sure paths are quoted in install Makefilewip/fix-validate-paths
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 7221c89ab9..5af00cdbe3 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' && \ |