Skip to content
Snippets Groups Projects
Unverified Commit cbc34486 authored by Nanda H Krishna's avatar Nanda H Krishna Committed by GitHub
Browse files

Merge pull request #8561 from josh/fix-livecheck-watchlist-read

Fix reading HOMEBREW_LIVECHECK_WATCHLIST file
parents 5e5dabca 2d0369fd
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -58,7 +58,7 @@ module Homebrew
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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment