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:
parent
ab31af2b4b
commit
53b95c6260
@ -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: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user