Skip to content
Snippets Groups Projects
Unverified Commit 53b95c62 authored by L. E. Segovia's avatar L. E. Segovia
Browse files

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.
parent ab31af2b
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ module Cask
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",
args: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment