Cask: set write permissions on symlinks
This commit is contained in:
parent
3fd75bb28b
commit
59fcaa3674
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user