installer: better check for /bin/dialog

this works on distros where /bin isn't a symlink to /usr/bin
This commit is contained in:
human 2019-04-28 11:51:26 +03:00 committed by Michael Aldridge
parent 86834e3ff7
commit 90cfccb903
1 changed files with 1 additions and 1 deletions

View File

@ -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