소스 검색

* fixed fpc detection

florian 20 년 전
부모
커밋
9739ba710b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      install/install.sh

+ 2 - 2
install/install.sh

@@ -217,9 +217,9 @@ do
 
   # cross install? 
   if [ cross != '' ]; then
-    if [ `which fpc` = '' ]; then
+    if [ "`which fpc 2>/dev/null`" = '' ]; then
       echo "No native FPC found."
-      echo "For a proper installation of a cross FPC the installation of a native FPC is required"
+      echo "For a proper installation of a cross FPC the installation of a native FPC is required."
       exit 1
     else
       if [ `fpc -iV` != $VERSION ]; then