Installer: Handle Darwin

"cp -r" doesn't copy symlinks properly on Darwin, but "cp -R" does.

Fixes #215.
This commit is contained in:
Eelco Dolstra 2014-02-26 17:23:23 +01:00
parent 6b9cd59a41
commit 506d86394d

View file

@ -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