livecheck: fix path to livecheck watchlist

This commit is contained in:
apainintheneck 2022-06-21 17:57:19 -07:00
parent b941470216
commit 3b65ecaf4c
2 changed files with 5 additions and 7 deletions

View File

@ -11,10 +11,7 @@ module Homebrew
module_function
WATCHLIST_PATH = (
Homebrew::EnvConfig.livecheck_watchlist ||
"#{Dir.home}/.brew_livecheck_watchlist"
).freeze
WATCHLIST_PATH = File.expand_path(Homebrew::EnvConfig.livecheck_watchlist).freeze
sig { returns(CLI::Parser) }
def livecheck_args

View File

@ -221,9 +221,10 @@ module Homebrew
boolean: true,
},
HOMEBREW_LIVECHECK_WATCHLIST: {
description: "Consult this file for the list of formulae to check by default when no formula argument " \
"is passed to `brew livecheck`.",
default: "$HOME/.brew_livecheck_watchlist",
description: "Consult this file for the list of formulae to check by default when no formula argument " \
"is passed to `brew livecheck`.",
default_text: "$HOME/.brew_livecheck_watchlist",
default: "~/.brew_livecheck_watchlist",
},
HOMEBREW_LOGS: {
description: "Use this directory to store log files.",