Skip to content

Commit

Permalink
Don't hide the "go get" output from the normal output
Browse files Browse the repository at this point in the history
  • Loading branch information
petere committed Oct 22, 2015
1 parent 890daa1 commit ae2be5c
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 @@ -3,7 +3,7 @@
tmp_file_path = ::File.join Chef::Config[:file_cache_path], new_resource.name.gsub(/\//, '-')

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 @@ -26,7 +26,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 ae2be5c

Please sign in to comment.