From 1d9fd952c6c6b4acc2debeaa27a5f7dbce8fc7af Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Wed, 13 Oct 2021 17:43:29 +0100 Subject: 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 --- hadrian/bindist/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' && \ -- cgit v1.2.1