Cask: simplify chmod +w passes
This commit is contained in:
parent
59fcaa3674
commit
2c9b599c0a
@ -136,11 +136,6 @@ 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])
|
|
||||||
|
|
||||||
# Symlinks cannot be fixed with -R.
|
|
||||||
resolved_symlinks = resolved_paths.select(&:symlink?)
|
|
||||||
|
|
||||||
system_command!("/usr/bin/xargs",
|
system_command!("/usr/bin/xargs",
|
||||||
args: [
|
args: [
|
||||||
"-0",
|
"-0",
|
||||||
@ -149,7 +144,7 @@ module Cask
|
|||||||
"-h",
|
"-h",
|
||||||
"u+w",
|
"u+w",
|
||||||
],
|
],
|
||||||
input: resolved_symlinks.join("\0"))
|
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