general: Fix travis

This commit is contained in:
Dylan Araps 2017-12-23 22:35:25 +11:00
parent efa9ff6726
commit c902c2d69e
1 changed files with 3 additions and 1 deletions

View File

@ -1244,7 +1244,9 @@ get_gpu() {
;;
*"intel"*)
freq="$(< /sys/devices/pci0000:00/0000:"${gpu/ *}"/drm/card0/gt_cur_freq_mhz)"
# (sorry)
freq="$(< /sys/devices/pci0000:00/0000:\
"${gpu/ *}"/drm/card0/gt_cur_freq_mhz)"
type -p glxinfo >/dev/null && \
gpu="$(glxinfo | grep "Device:.*Intel")"