Files
concrete/script/make_utils/ncpus.sh
Arthur Meyre 1a340e111e tools: add shell_lint target to lint .sh files
- update docker image to install shellcheck
- fix lint errors in files
2021-09-21 11:16:14 +02:00

8 lines
95 B
Bash
Executable File

#!/bin/bash
if [[ $(uname) == "Darwin" ]]; then
sysctl -n hw.logicalcpu
else
nproc
fi