Sfoglia il codice sorgente

installer: better check for /bin/dialog

this works on distros where /bin isn't a symlink to /usr/bin
human 6 anni fa
parent
commit
90cfccb903
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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