3
0
Fork 0
forked from mirrors/nixpkgs

vagrant: Unbreak replacing symlinks on macOS

On a local installation on macOS, "cp -a" creates a write-protected
directory, which can't be renamed.  Do a "chmod +w" to unbreak.

Fixes #77671.
This commit is contained in:
Mike Sperber 2020-01-14 13:15:17 +01:00
parent 2ac5fab264
commit 1bea1a30b5

View file

@ -33,6 +33,8 @@ let
for gem in "$out"/lib/ruby/gems/*/gems/*; do
cp -a "$gem/" "$gem.new"
rm "$gem"
# needed on macOS, otherwise the mv yields permission denied
chmod +w "$gem.new"
mv "$gem.new" "$gem"
done
'';