From 506d86394d463d862b212f2f203bdded98a8efab Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 26 Feb 2014 17:23:23 +0100 Subject: [PATCH] Installer: Handle Darwin "cp -r" doesn't copy symlinks properly on Darwin, but "cp -R" does. Fixes #215. --- scripts/install-nix-from-closure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-nix-from-closure.sh b/scripts/install-nix-from-closure.sh index 124819b3e..33ceeb37e 100644 --- a/scripts/install-nix-from-closure.sh +++ b/scripts/install-nix-from-closure.sh @@ -48,7 +48,7 @@ for i in $(cd $self/store && echo *); do rm -rf "$i_tmp" fi if ! [ -e "$dest/store/$i" ]; then - cp -rp "$self/store/$i" "$i_tmp" + cp -Rp "$self/store/$i" "$i_tmp" mv "$i_tmp" "$dest/store/$i" fi done