Check to see if Dialog CLI is also there

This commit is contained in:
Theile
2022-10-21 13:05:55 +02:00
parent 03177d4e9d
commit 2a0385d30d

View File

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