diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-12-23 00:43:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-23 00:43:38 +0100 |
commit | 7dcfa8042e64af9d9a5630a23df9475f48d8aec4 (patch) | |
tree | 1a028ab669d1b36aa131364b8ee38ea79ddd6a38 | |
parent | c84c843e3360459cf2c993919fb9f89474a46f38 (diff) | |
parent | 10414d467b392f285007edeb9e5ca897057adddf (diff) |
Merge pull request #3287 from michaelforney/cp-flag
Pass -P to cp to preserve symlinks
-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 3f1581854..3fea7e056 100644 --- a/scripts/install-nix-from-closure.sh +++ b/scripts/install-nix-from-closure.sh @@ -102,7 +102,7 @@ for i in $(cd "$self/store" >/dev/null && echo ./*); do rm -rf "$i_tmp" fi if ! [ -e "$dest/store/$i" ]; then - cp -Rp "$self/store/$i" "$i_tmp" + cp -RPp "$self/store/$i" "$i_tmp" chmod -R a-w "$i_tmp" chmod +w "$i_tmp" mv "$i_tmp" "$dest/store/$i" |