Explorar o código

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

Nathalie Furmento %!s(int64=12) %!d(string=hai) anos
pai
achega
deb20004f0
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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