about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-26T16·23+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-26T16·23+0100
commit506d86394d463d862b212f2f203bdded98a8efab (patch)
tree2bb2a8b41c0d23e1d2241be86436a2eceea6e124
parent6b9cd59a41f059bed393f512bf495be09c1d22f6 (diff)
Installer: Handle Darwin
"cp -r" doesn't copy symlinks properly on Darwin, but "cp -R" does.

Fixes #215.
-rw-r--r--scripts/install-nix-from-closure.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install-nix-from-closure.sh b/scripts/install-nix-from-closure.sh
index 124819b3e08c..33ceeb37e26c 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