From 7f7eb7e6cdac080e85450def86db420480bdc695 Mon Sep 17 00:00:00 2001 From: commitay Date: Sat, 7 Apr 2018 21:39:46 +1000 Subject: [PATCH] Add message to `set_ownership` --- Library/Homebrew/cask/lib/hbc/staged.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/cask/lib/hbc/staged.rb b/Library/Homebrew/cask/lib/hbc/staged.rb index da097e0cf9..fa2439a2e5 100644 --- a/Library/Homebrew/cask/lib/hbc/staged.rb +++ b/Library/Homebrew/cask/lib/hbc/staged.rb @@ -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