cask/cask: fix non-absolute home error.

Needs a leading slash to avoid `File.expand.path` complaining about non-absolute home.
This commit is contained in:
Mike McQuaid 2023-02-14 17:22:18 +00:00
parent 98f5213954
commit 1d61b219db
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

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"