osdetect.sh 135 B

12345678910111213
  1. #!/bin/bash
  2. if type -t wevtuil &> /dev/null
  3. then
  4. OS=MSWin
  5. elif type -t scutil &> /dev/null
  6. then
  7. OS=macOS
  8. else
  9. OS=Linux
  10. fi
  11. echo $OS