Merge pull request #4029 from commitay/set_ownership
Add message to `set_ownership`
This commit is contained in:
commit
427e39b421
@ -33,6 +33,7 @@ module Hbc
|
|||||||
def set_ownership(paths, user: current_user, group: "staff")
|
def set_ownership(paths, user: current_user, group: "staff")
|
||||||
full_paths = remove_nonexistent(paths)
|
full_paths = remove_nonexistent(paths)
|
||||||
return if full_paths.empty?
|
return if full_paths.empty?
|
||||||
|
ohai "Changing ownership of paths required by #{@cask}; your password may be necessary"
|
||||||
@command.run!("/usr/sbin/chown", args: ["-R", "--", "#{user}:#{group}"] + full_paths,
|
@command.run!("/usr/sbin/chown", args: ["-R", "--", "#{user}:#{group}"] + full_paths,
|
||||||
sudo: true)
|
sudo: true)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user