diff --git a/cookbooks/fb_apt/recipes/default.rb b/cookbooks/fb_apt/recipes/default.rb index 56c0c6a4..85f0dbcb 100644 --- a/cookbooks/fb_apt/recipes/default.rb +++ b/cookbooks/fb_apt/recipes/default.rb @@ -96,11 +96,11 @@ end execute 'apt-get update' do - command lazy do + command(lazy do log_path = node['fb_apt']['apt_update_log_path'] cmd_suffix = " >>#{Shellwords.shellescape(log_path)} 2>&1" if log_path "apt-get update#{cmd_suffix}" - end + end) action :nothing end