core_trap.sh 277 B

123456789101112131415
  1. #!/bin/bash
  2. # LGSM core_trap.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. lgsm_version="210516"
  6. # Description: handles ctrl-C trap to give an exitcode.
  7. fn_exit_trap(){
  8. echo ""
  9. core_exit.sh
  10. }
  11. # trap to give an exitcode.
  12. trap fn_exit_trap INT