diff --git a/Casks/salt.rb b/Casks/salt.rb index 283c12c..073c55c 100644 --- a/Casks/salt.rb +++ b/Casks/salt.rb @@ -20,8 +20,8 @@ pkg "salt-#{version}-py3-#{arch}.pkg" - require_relative "../lib/patches/salt" postflight do + require_relative "#{`brew --repository cdalvaro/tap`.lines.first.chomp}/lib/patches/salt" %w[api master minion syndic].each { |daemon| Patches::Salt.patch_plist(daemon) } end diff --git a/Casks/salt@3006.rb b/Casks/salt@3006.rb index 422b3b1..1ef8af7 100644 --- a/Casks/salt@3006.rb +++ b/Casks/salt@3006.rb @@ -20,8 +20,8 @@ pkg "salt-#{version}-py3-#{arch}.pkg" - require_relative "../lib/patches/salt" postflight do + require_relative "#{`brew --repository cdalvaro/tap`.lines.first.chomp}/lib/patches/salt" %w[api master minion syndic].each { |daemon| Patches::Salt.patch_plist(daemon) } end