You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

os.sh 472B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env bash
  2. ###############################
  3. # Helper for OS folders and scripts
  4. ###############################
  5. set -euo pipefail
  6. if [[ "${OSTYPE:-}" == "darwin"* ]]; then
  7. OS_DIR='macosx-universal-64'
  8. SH_FILE="sonar.sh"
  9. elif [[ "${OSTYPE:-}" == "msys"* ]]; then
  10. OS_DIR='windows-x86-64'
  11. SH_FILE="StartSonar.bat"
  12. else
  13. OS_DIR='linux-x86-64'
  14. SH_FILE="sonar.sh"
  15. fi
  16. runSQ() {
  17. if [[ "${OSTYPE:-}" == "msys"* ]]; then
  18. "$1"
  19. else
  20. "$1" start
  21. fi
  22. }