fix "unary operator expected" issue

closing #537
This commit is contained in:
darealshinji
2018-03-06 23:44:50 +01:00
committed by GitHub
parent bf884e9987
commit 8346a75068

View File

@@ -1407,7 +1407,7 @@ DetectIntelGPU() {
*intel*) gpu=intel ;;
esac
if [[ $gpu = intel ]]; then
if [[ "$gpu" = "intel" ]]; then
#Detect CPU
local CPU=$(uname -p | awk '{print $3}')
CPU=${CPU#*'-'}; #Detect CPU number