diff --git a/webodm.sh b/webodm.sh index 88de4bc9..e0be8926 100755 --- a/webodm.sh +++ b/webodm.sh @@ -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"