general: Fix travis

This commit is contained in:
Dylan Araps 2017-12-23 22:35:25 +11:00
parent efa9ff6726
commit c902c2d69e

View file

@ -1244,7 +1244,9 @@ get_gpu() {
;; ;;
*"intel"*) *"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 && \ type -p glxinfo >/dev/null && \
gpu="$(glxinfo | grep "Device:.*Intel")" gpu="$(glxinfo | grep "Device:.*Intel")"