Skip to content

Commit ea95634

Browse files
committed
Merge pull request ryanb#33 from EnriqueVidal/patch-1
Should stop complaining about file existing, Closes ryanbgh-29
2 parents fbbaf02 + 7bd7e71 commit ea95634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_warrior/player_generator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def previous_level
1919
# TODO refactor and test this method
2020
def generate
2121
if level.number == 1
22-
FileUtils.mkdir_p(level.player_path)
22+
FileUtils.mkdir_p(level.player_path) unless File.exists? level.player_path
2323
FileUtils.cp(templates_path + '/player.rb', level.player_path)
2424
end
2525

0 commit comments

Comments
 (0)