Cask: use native chmod to set write permissions

Ruby chmod follows symlinks, which can point to non-existent files. This
should fix quarantining Casks e.g. disk-inventory-x.
This commit is contained in:
L. E. Segovia 2018-09-07 16:57:00 +00:00
parent ab31af2b4b
commit 53b95c6260
No known key found for this signature in database
GPG Key ID: D5D1DC48B52B7AD5

View File

@ -121,7 +121,7 @@ module Cask
resolved_paths = Pathname.glob(to/"**/*", File::FNM_DOTMATCH) resolved_paths = Pathname.glob(to/"**/*", File::FNM_DOTMATCH)
FileUtils.chmod "u+w", resolved_paths system_command!("/bin/chmod", args: ["-R", "u+w", to])
quarantiner = system_command("/usr/bin/xargs", quarantiner = system_command("/usr/bin/xargs",
args: [ args: [