mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
single-user-install: fix cp flags on freebsd
This commit is contained in:
parent
1cce358c40
commit
ddd3034909
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ for i in $(cd "$self/store" >/dev/null && echo ./*); do
|
||||||
rm -rf "$i_tmp"
|
rm -rf "$i_tmp"
|
||||||
fi
|
fi
|
||||||
if ! [ -e "$dest/store/$i" ]; then
|
if ! [ -e "$dest/store/$i" ]; then
|
||||||
if [ "$OS" = "Darwin" ]; then
|
if [ "$OS" = "Darwin" ] || [ "$OS" = "FreeBSD" ]; then
|
||||||
cp -RPp "$self/store/$i" "$i_tmp"
|
cp -RPp "$self/store/$i" "$i_tmp"
|
||||||
else
|
else
|
||||||
cp -RP --preserve=ownership,timestamps "$self/store/$i" "$i_tmp"
|
cp -RP --preserve=ownership,timestamps "$self/store/$i" "$i_tmp"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue