瀏覽代碼

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

Nathalie Furmento 11 年之前
父節點
當前提交
deb20004f0
共有 1 個文件被更改,包括 2 次插入1 次删除
  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