setup-plaintext.sh 274 B

12345678910111213141516171819
  1. #!/bin/bash
  2. if [ "$(nproc)" -eq "80" ]
  3. then
  4. threadCount=24
  5. fi
  6. if [ "$(nproc)" -eq "4" ]
  7. then
  8. threadCount=2
  9. fi
  10. if [ -z "$threadCount" ]
  11. then
  12. echo "Invalid thread count ($(nproc)), using default"
  13. threadCount=2
  14. fi
  15. source run-linux.sh plaintext $threadCount