fix_ut99.sh 663 B

123456789101112131415161718
  1. #!/bin/bash
  2. # LinuxGSM fix_ut99.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: https://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Resolves issues with Unreal Tournament 99.
  7. moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  8. if [[ "${startparameters}" == *"-nohomedir"* ]] && [ -d "${HOME}/.utpg/System" ]; then
  9. while IFS= read -r -d '' homeini; do
  10. fixname="move $(basename "${homeini}") from ${HOME}/.utpg/System to ${systemdir}"
  11. fn_fix_msg_start
  12. mv --backup=numbered "${homeini}" "${systemdir}/"
  13. exitcode=$?
  14. fn_fix_msg_end
  15. done < <(find "${HOME}/.utpg/System" -maxdepth 1 -type f -name "*.ini" -print0)
  16. fi