Fix GPU count

This commit is contained in:
Dylan 2016-01-31 13:16:50 +11:00
parent 2284cde0d8
commit 35369534b8
1 changed files with 2 additions and 1 deletions

3
fetch
View File

@ -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