diff --git a/website/www/helpers/download_helpers.rb b/website/www/helpers/download_helpers.rb index 39721348e..993e34aec 100644 --- a/website/www/helpers/download_helpers.rb +++ b/website/www/helpers/download_helpers.rb @@ -22,6 +22,10 @@ if ENV["VAGRANT_VERSION"] next if line !~ /\/mitchellh\/vagrant\/(.+?)'/ filename = $1.to_s $vagrant_os_mappings.each do |suffix, os| + if !filename.include?(ENV["VAGRANT_VERSION"]) + next + end + if filename.end_with?(suffix) $vagrant_files[os] ||= [] $vagrant_files[os] << filename