mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-04 14:23:06 +01:00
Few logging levels changed
I want to return a valid explanation for log level REQ for why the script stops.
This commit is contained in:
@@ -150,7 +150,7 @@ if [[ -n $appNewVersion ]]; then
|
||||
printlog "notifying"
|
||||
displaynotification "$message" "No update for $name!"
|
||||
fi
|
||||
cleanupAndExit 0 "No newer version." WARN
|
||||
cleanupAndExit 0 "No newer version." REQ
|
||||
fi
|
||||
else
|
||||
printlog "DEBUG mode 1 enabled, not exiting, but there is no new version of app." WARN
|
||||
@@ -166,10 +166,9 @@ if [[ (-n $appversion && -n "$updateTool") || "$type" == "updateronly" ]]; then
|
||||
if [[ $DEBUG -ne 1 ]]; then
|
||||
if runUpdateTool; then
|
||||
finishing
|
||||
cleanupAndExit 0
|
||||
cleanupAndExit 0 "updateTool has run" REQ
|
||||
elif [[ $type == "updateronly" ]];then
|
||||
printlog "type is $type so we end here."
|
||||
cleanupAndExit 0
|
||||
cleanupAndExit 0 "type is $type so we end here." REQ
|
||||
fi # otherwise continue
|
||||
else
|
||||
printlog "DEBUG mode 1 enabled, not running update tool" WARN
|
||||
@@ -275,4 +274,4 @@ esac
|
||||
finishing
|
||||
|
||||
# all done!
|
||||
cleanupAndExit 0
|
||||
cleanupAndExit 0 "All done!" REQ
|
||||
|
||||
Reference in New Issue
Block a user