Merge pull request #5061 from amyspark/quarantine-symlinks

Cask: set write permissions on symlinks
This commit is contained in:
Markus Reiter 2018-10-13 23:49:13 +02:00 committed by GitHub
commit 6d41f4fa7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,15 @@ module Cask
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",
args: [