fix_ins.sh 717 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # LGSM fix_ins.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. # Description: Resolves various issues with Insurgency.
  6. local commandnane="FIX"
  7. local commandaction="Fix"
  8. # Cannot have selfname as breaks if statement.
  9. #local selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  10. # Fixes: ./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory.
  11. export LD_LIBRARY_PATH=${filesdir}:${filesdir}/bin:${LD_LIBRARY_PATH}
  12. # Fixes: issue #529 - gamemode not passed to debug or start.
  13. if [ "${selfname}" == "command_debug.sh" ]; then
  14. defaultmap="\"${defaultmap}\""
  15. else
  16. defaultmap="\\\"${defaultmap}\\\""
  17. fi