Files
discordeno/scripts/checkCpuModel.sh
T
2023-03-08 14:17:35 -08:00

11 lines
281 B
Bash
Executable File

#!/bin/bash
hostCpu=$(lscpu | sed -nr '/Model name/ s/.*:\s*(.*) @ .*/\1/p')
targetCpu=$(curl https://raw.githubusercontent.com/discordeno/discordeno/benchies/cpu)
echo "host: ${hostCpu} target: ${targetCpu}"
if [ "$hostCpu" == "$targetCpu" ]; then
exit 1
else
exit 0
fi