mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-01-10 06:48:00 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user