use utils.join_path

This commit is contained in:
AdnoC 2021-01-21 21:11:43 -05:00 committed by Thomas Vigouroux
parent 4d2813f03b
commit e65049bd37

View file

@ -173,13 +173,7 @@ function M.select_download_commands(repo, project_name, cache_folder, revision)
M.select_install_rm_cmd(cache_folder, project_name..'-tmp')
}
else
local git_folder
if is_windows then
git_folder = cache_folder ..'\\'.. project_name
else
git_folder = cache_folder ..'/'.. project_name
end
local git_folder = utils.join_path(cache_folder, project_name)
local clone_error = 'Error during download, please verify your internet connection'
if is_windows then
clone_error = clone_error .. ". If on Windows you may need to enable Developer mode"