Pārlūkot izejas kodu

mic-configure: fix test to check mic host compiler is available

Nathalie Furmento 11 gadi atpakaļ
vecāks
revīzija
deb20004f0
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      mic-configure

+ 2 - 1
mic-configure

@@ -28,7 +28,8 @@ do
 
 done
 
-if [ ! -x "${mic_host}-gcc" ]
+x=$(type -t ${mic_host}-gcc)
+if [ -z "$x" ]
 then
     echo "[error] please add path to ${mic_host}-gcc in your PATH"
     exit 1