Fix GPU count
This commit is contained in:
parent
2284cde0d8
commit
35369534b8
1 changed files with 2 additions and 1 deletions
3
fetch
3
fetch
|
@ -837,9 +837,10 @@ getgpu () {
|
|||
"Linux")
|
||||
# Get the GPUs
|
||||
gpu="$(lspci | grep -F "VGA" | uniq -c)"
|
||||
gpu=${gpu/??':'??'.'?}
|
||||
|
||||
# Count the number of GPUs
|
||||
count=${gpu/ ??:*}
|
||||
count=${gpu/ VGA*}
|
||||
count=${count//[[:space:]]}
|
||||
|
||||
# If there's more than one gpu
|
||||
|
|
Loading…
Reference in a new issue