Merge pull request #13454 from apainintheneck/livecheck-watchlist-path

This commit is contained in:
Carlo Cabrera 2022-06-22 09:48:26 +08:00 committed by GitHub
commit 4103f9dd0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.",