Use argument list for sh instead of string
Faster, more portable and less error prone since no shell expansion.
This commit is contained in:
parent
3880bb6176
commit
a3623a9691
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ namespace :gitlab do
|
||||||
|
|
||||||
# Clone if needed
|
# Clone if needed
|
||||||
unless File.directory?(target_dir)
|
unless File.directory?(target_dir)
|
||||||
sh "git clone '#{args.repo}' '#{target_dir}'"
|
sh(*%W(git clone #{args.repo} #{target_dir}))
|
||||||
end
|
end
|
||||||
|
|
||||||
# Make sure we're on the right tag
|
# Make sure we're on the right tag
|
||||||
|
|
Loading…
Reference in a new issue