diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-26T16·23+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-26T16·23+0100 |
commit | 506d86394d463d862b212f2f203bdded98a8efab (patch) | |
tree | 2bb2a8b41c0d23e1d2241be86436a2eceea6e124 | |
parent | 6b9cd59a41f059bed393f512bf495be09c1d22f6 (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.sh | 2 |
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 |