hbc/locations: arg is file only if absolute or .rb file
Handle the case when an argument passed to `brew cask` is both the name of a Cask and a non-Cask file in the current working directory. Fixes https://github.com/caskroom/homebrew-cask/issues/25611.
Please register or sign in to comment