From 4bd4256083c5a6381ecbd2f4eeffd139cabc4d30 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 22 Feb 2020 01:37:40 +0100 Subject: [PATCH] Simplify check for command files. Fixes https://github.com/Homebrew/homebrew-cask/issues/77524. --- cmd/brewcask-ci.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/brewcask-ci.rb b/cmd/brewcask-ci.rb index 0ee196f98fe..0ef3a5ca315 100755 --- a/cmd/brewcask-ci.rb +++ b/cmd/brewcask-ci.rb @@ -293,7 +293,7 @@ module Cask end def modified_command_files - @modified_command_files ||= modified_files.select { |path| tap.command_file?(path) || path.ascend.to_a.last.to_s == "cmd" } + @modified_command_files ||= modified_files.select { |path| path.ascend.to_a.last.to_s == "cmd" } end def modified_github_files