Debian Codegraph @

etc/ci/describe-system-config-macos.sh

raw symbols SCIP
1 #!/bin/sh
2
3 cd -- "$( dirname -- "$0" )"
4 cd ../..
5
6 if [ ! -z "${SHELL}" ]; then
7 run() {
8 "${SHELL}" -c "$*" || true
9 }
10 else
11 run() {
12 /bin/sh -c "$*" || true
13 }
14 fi
15
16 if [ ! -z "$CI" ]; then
17 group() {
18 echo "::group::$*"
19 2>&1 run "$@"
20 echo "::endgroup::"
21 }
22 else
23 group() { run "$@"; }
24 fi
25
26 group sysctl -n machdep.cpu.brand_string
27 group "sysctl -a | grep machdep.cpu"
28 group sw_vers -productVersion
29 group system_profiler SPSoftwareDataType
30 . etc/ci/describe-system-config-common-groups.sh