mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-07 21:21:55 +00:00
Merge pull request #658 from Theile/Dialog-additions
Dialog update when app is already at the latest version
This commit is contained in:
@@ -285,6 +285,10 @@ getAppVersion() {
|
||||
printlog "Replacing App Store apps, no matter the version" WARN
|
||||
appversion=0
|
||||
else
|
||||
if [[ $DIALOG_CMD_FILE != "" ]]; then
|
||||
updateDialog "wait" "Already installed from App Store. Not replaced."
|
||||
sleep 4
|
||||
fi
|
||||
cleanupAndExit 23 "App previously installed from App Store, and we respect that" ERROR
|
||||
fi
|
||||
fi
|
||||
@@ -462,6 +466,10 @@ installAppWithPath() { # $1: path to app to install in $targetDir
|
||||
printlog "notifying"
|
||||
displaynotification "$message" "No update for $name!"
|
||||
fi
|
||||
if [[ $DIALOG_CMD_FILE != "" ]]; then
|
||||
updateDialog "wait" "Latest version already installed..."
|
||||
sleep 2
|
||||
fi
|
||||
cleanupAndExit 0 "No new version to install" REG
|
||||
else
|
||||
printlog "Using force to install anyway."
|
||||
@@ -628,6 +636,10 @@ installFromPKG() {
|
||||
printlog "notifying"
|
||||
displaynotification "$message" "No update for $name!"
|
||||
fi
|
||||
if [[ $DIALOG_CMD_FILE != "" ]]; then
|
||||
updateDialog "wait" "Latest version already installed..."
|
||||
sleep 2
|
||||
fi
|
||||
cleanupAndExit 0 "No new version to install" REQ
|
||||
else
|
||||
printlog "Using force to install anyway."
|
||||
|
||||
@@ -183,6 +183,10 @@ if [[ -n $appNewVersion ]]; then
|
||||
printlog "notifying"
|
||||
displaynotification "$message" "No update for $name!"
|
||||
fi
|
||||
if [[ $DIALOG_CMD_FILE != "" ]]; then
|
||||
updateDialog "complete" "Latest version already installed..."
|
||||
sleep 2
|
||||
fi
|
||||
cleanupAndExit 0 "No newer version." REQ
|
||||
fi
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user