Cask: set write permissions on symlinks

This commit is contained in:
L. E. Segovia 2018-10-08 01:39:52 +00:00
parent 3fd75bb28b
commit 59fcaa3674
No known key found for this signature in database
GPG Key ID: D5D1DC48B52B7AD5

View File

@ -138,6 +138,19 @@ module Cask
system_command!("/bin/chmod", args: ["-R", "u+w", to])
# Symlinks cannot be fixed with -R.
resolved_symlinks = resolved_paths.select(&:symlink?)
system_command!("/usr/bin/xargs",
args: [
"-0",
"--",
"/bin/chmod",
"-h",
"u+w",
],
input: resolved_symlinks.join("\0"))
quarantiner = system_command("/usr/bin/xargs",
args: [
"-0",