Skip to content

Commit

Permalink
Should stop complaining about file existing, Closes gh-29
Browse files Browse the repository at this point in the history
  • Loading branch information
EnriqueVidal committed Apr 30, 2011
1 parent c90e181 commit 7bd7e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby_warrior/player_generator.rb
Expand Up @@ -19,7 +19,7 @@ def previous_level
# TODO refactor and test this method
def generate
if level.number == 1
FileUtils.mkdir_p(level.player_path)
FileUtils.mkdir_p(level.player_path) unless File.exists? level.player_path
FileUtils.cp(templates_path + '/player.rb', level.player_path)
end

Expand Down

0 comments on commit 7bd7e71

Please sign in to comment.