소스 검색

installer: better check for /bin/dialog

this works on distros where /bin isn't a symlink to /usr/bin
human 6 년 전
부모
커밋
90cfccb903
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      installer.sh.in

+ 1 - 1
installer.sh.in

@@ -1425,7 +1425,7 @@ menu() {
     esac
 }
 
-if [ ! -x /bin/dialog ]; then
+if ! command -v dialog >/dev/null; then
     echo "ERROR: missing dialog command, exiting..."
     exit 1
 fi