Browse Source

Update gpgtools-beta.rb (#3565)

master
commitay 8 years ago
committed by Miccal Matthews
parent
commit
e3b253ab67
  1. 10
      Casks/gpgtools-beta.rb

10
Casks/gpgtools-beta.rb

@ -13,16 +13,6 @@ cask 'gpgtools-beta' do
pkg 'Install.pkg'
# TODO: remove all ENV variables
postflight do
system_command '/usr/local/MacGPG2/libexec/fixGpgHome',
args: [
Etc.getpwuid(Process.euid).name,
ENV['GNUPGHOME'] ? ENV['GNUPGHOME'] : Pathname.new(File.expand_path('~')).join('.gnupg'),
],
sudo: true
end
uninstall_postflight do
%w[gpg gpg2 gpg-agent].map { |exec_name| "/usr/local/bin/#{exec_name}" }.each do |exec|
File.rm(exec) if File.exist?(exec) && File.readlink(exec).include?('MacGPG2')

Loading…
Cancel
Save