mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-11 06:13:12 +01:00
Fixed INSTALL=force no matter the version
If `INSTALL=force` is used, then previously we would need installed version and appNewVersion to be equal for the updateTool to be skipped. Not anymore.
This commit is contained in:
@@ -117,6 +117,10 @@ printlog "appversion: $appversion"
|
|||||||
|
|
||||||
# MARK: Exit if new version is the same as installed version (appNewVersion specified)
|
# MARK: Exit if new version is the same as installed version (appNewVersion specified)
|
||||||
# credit: Søren Theilgaard (@theilgaard)
|
# credit: Søren Theilgaard (@theilgaard)
|
||||||
|
if [[ $INSTALL == "force" ]]; then
|
||||||
|
printlog "Using force to install, so not using updateTool."
|
||||||
|
updateTool=""
|
||||||
|
fi
|
||||||
if [[ -n $appNewVersion ]]; then
|
if [[ -n $appNewVersion ]]; then
|
||||||
printlog "Latest version of $name is $appNewVersion"
|
printlog "Latest version of $name is $appNewVersion"
|
||||||
if [[ $appversion == $appNewVersion ]]; then
|
if [[ $appversion == $appNewVersion ]]; then
|
||||||
@@ -129,9 +133,6 @@ if [[ -n $appNewVersion ]]; then
|
|||||||
displaynotification "$message" "No update for $name!"
|
displaynotification "$message" "No update for $name!"
|
||||||
fi
|
fi
|
||||||
cleanupAndExit 0 "No newer version."
|
cleanupAndExit 0 "No newer version."
|
||||||
else
|
|
||||||
printlog "Using force to install anyway. Not using updateTool."
|
|
||||||
updateTool=""
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
printlog "DEBUG mode enabled, not exiting, but there is no new version of app."
|
printlog "DEBUG mode enabled, not exiting, but there is no new version of app."
|
||||||
@@ -139,10 +140,6 @@ if [[ -n $appNewVersion ]]; then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
printlog "Latest version not specified."
|
printlog "Latest version not specified."
|
||||||
if [[ $INSTALL == "force" ]]; then
|
|
||||||
printlog "Using force to install, so not using updateTool."
|
|
||||||
updateTool=""
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# MARK: check if this is an Update and we can use updateTool
|
# MARK: check if this is an Update and we can use updateTool
|
||||||
|
|||||||
Reference in New Issue
Block a user