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

branch rather than do both

Signed-off-by: default avatarThom May <thom@chef.io>
parent 6a8f4cfc
......@@ -662,13 +662,14 @@ module Omnibus
Dir.chdir(software.project_dir) do
if options.delete(:unchecked)
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
files.each do |file|
FileUtils.ln_s(file, destination, options)
files = FileSyncer.glob(source)
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
......
Markdown is supported
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