mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-01-10 06:48:00 -05:00
Merge pull request #408 from delan/patch-2
OpenBSD: glxinfo(1): suppress standard error
This commit is contained in:
@@ -1245,7 +1245,7 @@ detectgpu () {
|
||||
# gpu=$(sed 's/.*device.*= //' <<< "${gpu_info}" | sed "s/'//g")
|
||||
fi
|
||||
elif [[ "${distro}" == "OpenBSD" ]]; then
|
||||
gpu=$(glxinfo | grep 'OpenGL renderer string' | sed 's/OpenGL renderer string: //')
|
||||
gpu=$(glxinfo 2> /dev/null | grep 'OpenGL renderer string' | sed 's/OpenGL renderer string: //')
|
||||
elif [[ "${distro}" == "Mac OS X" ]]; then
|
||||
gpu=$(system_profiler SPDisplaysDataType | awk -F': ' '/^\ *Chipset Model:/ {print $2}' | awk '{ printf "%s / ", $0 }' | sed -e 's/\/ $//g')
|
||||
elif [[ "${distro}" == "Cygwin" || "${distro}" == "Msys" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user