Unverified Commit 6a8f4cfc authored by Thom May's avatar Thom May
Browse files

sometimes we just need to gorram make a link



Signed-off-by: default avatarThom May <thom@chef.io>
parent c786e4a9
...@@ -660,6 +660,9 @@ module Omnibus ...@@ -660,6 +660,9 @@ module Omnibus
command = "link `#{source}' to `#{destination}'" command = "link `#{source}' to `#{destination}'"
build_commands << BuildCommand.new(command) do build_commands << BuildCommand.new(command) do
Dir.chdir(software.project_dir) do Dir.chdir(software.project_dir) do
if options.delete(:unchecked)
FileUtils.ln_s(source, destination, options)
end
files = FileSyncer.glob(source) files = FileSyncer.glob(source)
if files.empty? if files.empty?
log.warn(log_key) { "no matched files for glob #{command}" } log.warn(log_key) { "no matched files for glob #{command}" }
......
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