Fix indentation

pull/1251/head
Piero Toffanin 2022-09-21 00:12:56 -04:00
rodzic 29ac754cc1
commit a47a5de210
1 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -186,13 +186,13 @@ detect_gpus(){
return
fi
NVIDIA_DEVICE=$(nvidia-smi -L | grep "GPU 0:" | awk -F ': ' '{print $2}' | awk -F '(' '{print $1}')
#IF the NVIDIA_DEVICE has the word NVIDIA in it, then enable NVIDIA
if [[ $NVIDIA_DEVICE == *"NVIDIA"* ]]; then
echo "GPU_NVIDIA has been found"
export GPU_NVIDIA=true
set -e
return
fi
#IF the NVIDIA_DEVICE has the word NVIDIA in it, then enable NVIDIA
if [[ $NVIDIA_DEVICE == *"NVIDIA"* ]]; then
echo "GPU_NVIDIA has been found"
export GPU_NVIDIA=true
set -e
return
fi
if lspci | grep "VGA.*Intel"; then
echo "GPU_INTEL has been found"