Skip to content

Commit

Permalink
Merge pull request #10280 from hyuraku/cmd/commands_add_only_bash_com…
Browse files Browse the repository at this point in the history
…mand_list

cmd/prof: raise error when cmd is bash file
  • Loading branch information
MikeMcQuaid committed Jan 18, 2021
2 parents 587a545 + c56fff3 commit 668073d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/dev-cmd/prof.rb
Expand Up @@ -28,6 +28,8 @@ def prof

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"
Expand Down

0 comments on commit 668073d

Please sign in to comment.