installer: better check for /bin/dialog
this works on distros where /bin isn't a symlink to /usr/bin
This commit is contained in:
parent
86834e3ff7
commit
90cfccb903
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue