Merge pull request #77672 from active-group/unbreak-vagrant-macos

vagrant: Unbreak replacing symlinks on macOS
This commit is contained in:
Mario Rodas 2020-01-14 21:51:26 -05:00 committed by GitHub
commit 6f545410b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
'';