Fix gpu variable check esp it's empty

Fix for the following problem:
```
/usr/bin/screenfetch: line 1341: [: =: unary operator expected
```
This commit is contained in:
Lee
2017-03-14 15:50:40 +08:00
committed by GitHub
parent 36518ac06d
commit 0451fcee67

View File

@@ -1338,7 +1338,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