From 1d61b219db246e79ce6e86bff4dda17d593164af Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 14 Feb 2023 17:22:18 +0000 Subject: [PATCH] cask/cask: fix non-absolute home error. Needs a leading slash to avoid `File.expand.path` complaining about non-absolute home. --- Library/Homebrew/cask/cask.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/cask.rb b/Library/Homebrew/cask/cask.rb index b6a80e667e..67d8d44f03 100644 --- a/Library/Homebrew/cask/cask.rb +++ b/Library/Homebrew/cask/cask.rb @@ -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"