Unverified Commit c5991cdc authored by Thom May's avatar Thom May
Browse files

branch rather than do both



Signed-off-by: default avatarThom May <thom@chef.io>
parent 6a8f4cfc
...@@ -662,13 +662,14 @@ module Omnibus ...@@ -662,13 +662,14 @@ module Omnibus
Dir.chdir(software.project_dir) do Dir.chdir(software.project_dir) do
if options.delete(:unchecked) if options.delete(:unchecked)
FileUtils.ln_s(source, destination, options) FileUtils.ln_s(source, destination, options)
end
files = FileSyncer.glob(source)
if files.empty?
log.warn(log_key) { "no matched files for glob #{command}" }
else else
files.each do |file| files = FileSyncer.glob(source)
FileUtils.ln_s(file, destination, options) if files.empty?
log.warn(log_key) { "no matched files for glob #{command}" }
else
files.each do |file|
FileUtils.ln_s(file, destination, options)
end
end end
end end
end end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment