Merge pull request #14627 from MikeMcQuaid/master

cask/cask: fix non-absolute home error.
This commit is contained in:
Mike McQuaid 2023-02-14 17:43:14 +00:00 committed by GitHub
commit c87090e1a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,8 @@ module Cask
extend Searchable
include Metadata
HOME_PLACEHOLDER = "$HOME"
# Needs a leading slash to avoid `File.expand.path` complaining about non-absolute home.
HOME_PLACEHOLDER = "/$HOME"
HOMEBREW_PREFIX_PLACEHOLDER = "$HOMEBREW_PREFIX"
APPDIR_PLACEHOLDER = "$APPDIR"