Check to see if dialog CLI is also there

This commit is contained in:
Theile
2022-10-21 13:07:19 +02:00
parent 2a0385d30d
commit a7224fcbea

View File

@@ -80,6 +80,7 @@ versionKey="CFBundleShortVersionString" #CFBundleVersion
currentInstalledVersion="$(defaults read "${destFile}/Contents/Info.plist" $versionKey || true)"
printlog "${name} version: $currentInstalledVersion"
destFile="/usr/local/bin/dialog"
if [[ ! -e "${destFile}" || "$currentInstalledVersion" != "$appNewVersion" ]]; then
printlog "$name not found or version not latest."
printlog "${destFile}"