From d95f68913f9c34cfd9e0089f3f0a706babca5b73 Mon Sep 17 00:00:00 2001 From: djk447 Date: Fri, 8 Sep 2017 09:05:20 -0400 Subject: [PATCH] miniconda2: use #{HOMEBREW_PREFIX} (#4402) --- Casks/miniconda2.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Casks/miniconda2.rb b/Casks/miniconda2.rb index 44ca94694..f280fa66c 100644 --- a/Casks/miniconda2.rb +++ b/Casks/miniconda2.rb @@ -12,12 +12,18 @@ cask 'miniconda2' do installer script: { executable: 'Miniconda2-latest-MacOSX-x86_64.sh', - args: ['-b'], + args: ['-b', '-p', "#{HOMEBREW_PREFIX}/miniconda2"], + sudo: true, } - uninstall delete: '~/miniconda2' + postflight do + set_ownership "#{HOMEBREW_PREFIX}/miniconda2" + end + + uninstall delete: "#{HOMEBREW_PREFIX}/miniconda2" caveats do - path_environment_variable '~/miniconda2/bin' + path_environment_variable "#{HOMEBREW_PREFIX}/miniconda2/bin" + files_in_usr_local end end