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-05-25 13:36:24 -07:00
committed by Michael Aldridge
parent 86834e3ff7
commit 90cfccb903
+1 -1
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