Skip to content

Commit

Permalink
Merge pull request #50 from petere/go-get-output
Browse files Browse the repository at this point in the history
Don't hide the "go get" output from the normal output
  • Loading branch information
mburns authored Sep 30, 2016
2 parents a17a027 + ae2be5c commit f22e2af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
end.run_action(:create)

bash "Installing package #{new_resource.name}" do
code "#{node['go']['install_dir']}/go/bin/go get -v #{new_resource.name} 2> >(grep -v '(download)$' > #{tmp_file_path})"
code "#{node['go']['install_dir']}/go/bin/go get -v #{new_resource.name} 2> >(grep -v '(download)$' | tee #{tmp_file_path})"
action :nothing
user node['go']['owner']
group node['go']['group']
Expand All @@ -38,7 +38,7 @@
tmp_file_path = ::File.join Chef::Config[:file_cache_path], new_resource.name.gsub(/\//, '-')

bash "Updating package #{new_resource.name}" do
code "#{node['go']['install_dir']}/go/bin/go get -v -u #{new_resource.name} 2> >(grep -v '(download)$' > #{tmp_file_path})"
code "#{node['go']['install_dir']}/go/bin/go get -v -u #{new_resource.name} 2> >(grep -v '(download)$' | tee #{tmp_file_path})"
action :nothing
user node['go']['owner']
group node['go']['group']
Expand Down

0 comments on commit f22e2af

Please sign in to comment.