Fix GPU count

This commit is contained in:
Dylan 2016-01-31 13:16:50 +11:00
parent 2284cde0d8
commit 35369534b8

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