uninstall.sh 607 B

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env bash
  2. script_dir=`dirname "$0"`
  3. source "${script_dir}"/common
  4. echo
  5. info "Removing the patch"
  6. echo
  7. info "Restoring game file backups"
  8. for game_file in ${game_files[@]}
  9. do
  10. if test -f "${game_file}.bak"; then
  11. info "Restoring ${game_file}"
  12. rm "${game_file}"
  13. mv "${game_file}.bak" "${game_file}"
  14. else
  15. warn "Backup for ${game_file} not found! Skipping"
  16. fi
  17. done
  18. echo
  19. info "Removing the game launch script"
  20. rm "launch.bat"
  21. echo
  22. info "Done"
  23. echo
  24. warn "The uninstaller does not remove logging servers from /etc/hosts. Please remove them manually"
  25. echo