Skip to content

Commit

Permalink
Fix to the game move.
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnfaraday committed Apr 9, 2018
1 parent 6718103 commit 375b642
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions beta10_gamedir_shuffle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ module AresMUSH
puts "Put the game dir back where it belongs."
puts "======================================================================="

secrets_path = File.join(AresMUSH.game_path, "config", "secrets.yml")
FileUtils.mv secrets_path, File.join(AresMUSH.root_path, "game.backup", "secrets.yml")

src = File.join(AresMUSH.root_path, "game.backup")
if (Dir.exist?(src) && !Dir.exist?(AresMUSH.game_path))
FileUtils.mv src, AresMUSH.game_path
else
puts "The game directory already exists. Either you've already run this script or there are some leftover files you need to get rid of first. Log files, aresconfig.js and ares.css can be safely deleted. If you aren't sure what to do, ask for help on the forums."
end

puts "======================================================================="
Expand Down

0 comments on commit 375b642

Please sign in to comment.