Skip to content

Commit

Permalink
fb_apt: correct multiline command proc for log_path to work
Browse files Browse the repository at this point in the history
Differential Revision: D53741083

fbshipit-source-id: f121b988d85c041f9f4d120fd5d5e16236ef6cb9
  • Loading branch information
joshuamiller01 authored and facebook-github-bot committed Feb 14, 2024
1 parent 9218cc5 commit ceca0ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookbooks/fb_apt/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ceca0ed

Please sign in to comment.