We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1de914c commit 33a28d3Copy full SHA for 33a28d3
benchmark/cpu.sh
@@ -4,12 +4,12 @@ CPUPATH=/sys/devices/system/cpu
4
5
MAXID=$(cat $CPUPATH/present | awk -F- '{print $NF}')
6
7
-if [ "$(uname -s)" != "Linux" ]; then
+if [ "$(uname -s || true)" != "Linux" ]; then
8
echo "Error: This script runs on Linux only." >&2
9
exit 1
10
fi
11
12
-if [ "$(id -u)" -ne 0 ]; then
+if [ "$(id -u || true)" -ne 0 ]; then
13
echo "Error: Run as root (sudo) to modify CPU governor." >&2
14
15
0 commit comments