Skip to content
Snippets Groups Projects
Commit 7f7eb7e6 authored by commitay's avatar commitay
Browse files

Add message to `set_ownership`

parent 94c0d833
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ module Hbc
def set_ownership(paths, user: current_user, group: "staff")
full_paths = remove_nonexistent(paths)
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,
sudo: true)
end
......
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