From ceca0eddb4b57bfb1aa5fa6f5a5eb202234eca6b Mon Sep 17 00:00:00 2001 From: Joshua Miller Date: Wed, 14 Feb 2024 08:24:36 -0800 Subject: [PATCH] fb_apt: correct multiline command proc for log_path to work Differential Revision: D53741083 fbshipit-source-id: f121b988d85c041f9f4d120fd5d5e16236ef6cb9 --- cookbooks/fb_apt/recipes/default.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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