Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GitLab
omnibus
Commits
8d4281a8
Unverified
Commit
8d4281a8
authored
Jan 26, 2018
by
Thom May
Committed by
GitHub
Jan 26, 2018
Browse files
Merge pull request #814 from chef/tm/make_link_so
sometimes we just need to gorram make a link
parents
c786e4a9
c5991cdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/omnibus/builder.rb
View file @
8d4281a8
...
...
@@ -660,12 +660,16 @@ module Omnibus
command
=
"link `
#{
source
}
' to `
#{
destination
}
'"
build_commands
<<
BuildCommand
.
new
(
command
)
do
Dir
.
chdir
(
software
.
project_dir
)
do
files
=
FileSyncer
.
glob
(
source
)
if
files
.
empty?
log
.
warn
(
log_key
)
{
"no matched files for glob
#{
command
}
"
}
if
options
.
delete
(
:unchecked
)
FileUtils
.
ln_s
(
source
,
destination
,
options
)
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment