Skip to content

Commit

Permalink
Merge pull request #94 from dylanratcliffe/fix_vagrant_duplicates
Browse files Browse the repository at this point in the history
Strip slashes from directories
  • Loading branch information
adrianiurca authored Aug 24, 2020
2 parents 827de46 + 292c54f commit 5accd00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def generate_vagrantfile(file_path, platform, enable_synced_folder, provider, cp
end

def get_vagrant_dir(platform, vagrant_dirs, i = 0)
platform_dir = "#{platform}-#{i}"
platform_dir = "#{platform}-#{i}".gsub(%r{[\/\\]}, '-') # Strip slashes
if vagrant_dirs.include?(platform_dir)
platform_dir = get_vagrant_dir(platform, vagrant_dirs, i + 1)
end
Expand Down

0 comments on commit 5accd00

Please sign in to comment.