Merge pull request #5061 from amyspark/quarantine-symlinks
Cask: set write permissions on symlinks
This commit is contained in:
commit
6d41f4fa7c
@ -136,7 +136,15 @@ module Cask
|
|||||||
|
|
||||||
resolved_paths = Pathname.glob(to/"**/*", File::FNM_DOTMATCH)
|
resolved_paths = Pathname.glob(to/"**/*", File::FNM_DOTMATCH)
|
||||||
|
|
||||||
system_command!("/bin/chmod", args: ["-R", "u+w", to])
|
system_command!("/usr/bin/xargs",
|
||||||
|
args: [
|
||||||
|
"-0",
|
||||||
|
"--",
|
||||||
|
"/bin/chmod",
|
||||||
|
"-h",
|
||||||
|
"u+w",
|
||||||
|
],
|
||||||
|
input: resolved_paths.join("\0"))
|
||||||
|
|
||||||
quarantiner = system_command("/usr/bin/xargs",
|
quarantiner = system_command("/usr/bin/xargs",
|
||||||
args: [
|
args: [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user