Unverified Commit 8d4281a8 authored by Thom May's avatar Thom May Committed by GitHub

Merge pull request #814 from chef/tm/make_link_so

sometimes we just need to gorram make a link
parents c786e4a9 c5991cdc
......@@ -660,6 +660,9 @@ module Omnibus
command = "link `#{source}' to `#{destination}'"
build_commands << BuildCommand.new(command) do
Dir.chdir(software.project_dir) do
if options.delete(:unchecked)
FileUtils.ln_s(source, destination, options)
else
files = FileSyncer.glob(source)
if files.empty?
log.warn(log_key) { "no matched files for glob #{command}" }
......@@ -671,6 +674,7 @@ module Omnibus
end
end
end
end
expose :link
#
......
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