Use argument list for sh instead of string

Faster, more portable and less error prone since no shell expansion.
This commit is contained in:
Ciro Santilli 2014-10-18 22:49:56 +02:00
parent 3880bb6176
commit a3623a9691
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ namespace :gitlab do
# Clone if needed
unless File.directory?(target_dir)
sh "git clone '#{args.repo}' '#{target_dir}'"
sh(*%W(git clone #{args.repo} #{target_dir}))
end
# Make sure we're on the right tag