Skip to content

Commit

Permalink
Merge pull request #8561 from josh/fix-livecheck-watchlist-read
Browse files Browse the repository at this point in the history
Fix reading HOMEBREW_LIVECHECK_WATCHLIST file
  • Loading branch information
nandahkrishna authored Sep 1, 2020
2 parents 5e5dabc + 2d0369f commit cbc3448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/dev-cmd/livecheck.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module Homebrew

WATCHLIST_PATH = (
ENV["HOMEBREW_LIVECHECK_WATCHLIST"] ||
Pathname.new(Dir.home)/".brew_livecheck_watchlist"
"#{Dir.home}/.brew_livecheck_watchlist"
).freeze

def livecheck_args
Expand Down Expand Up @@ -58,7 +58,7 @@ def livecheck
args.formulae
elsif File.exist?(WATCHLIST_PATH)
begin
WATCHLIST_PATH.read.lines.map do |line|
Pathname.new(WATCHLIST_PATH).read.lines.map do |line|
next if line.start_with?("#")

Formula[line.strip]
Expand Down

0 comments on commit cbc3448

Please sign in to comment.