Merge pull request #10280 from hyuraku/cmd/commands_add_only_bash_command_list
cmd/prof: raise error when cmd is bash file
This commit is contained in:
commit
668073dfe3
@ -28,6 +28,8 @@ module Homebrew
|
||||
|
||||
brew_rb = (HOMEBREW_LIBRARY_PATH/"brew.rb").resolved_path
|
||||
FileUtils.mkdir_p "prof"
|
||||
cmd = args.named.first
|
||||
raise UsageError, "#{cmd} is a Bash command!" if Commands.path(cmd).extname == ".sh"
|
||||
|
||||
if args.stackprof?
|
||||
Homebrew.install_gem_setup_path! "stackprof"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user