Skip to content

Commit 1018294

Browse files
committed
global-functions: $ScriptInstallUpdate: disable notification only...
... if requested, but keep output and logs.
1 parent b18ca62 commit 1018294

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

global-functions

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -832,24 +832,24 @@
832832
}
833833
}
834834

835-
:if ($NoNewsAndChangesNotification != true) do={
836-
:local NotificationMessage ("The configuration version on " . $Identity . " increased " . \
837-
"to " . $ExpectedConfigVersion . ", current configuration may need modification. " . \
838-
"Please review and update global-config-overlay, then re-run global-config.");
839-
$LogPrintExit2 info $0 ($NotificationMessage) false;
840-
841-
:if ([ :len $GlobalConfigChanges ] > 0) do={
842-
:set NotificationMessage ($NotificationMessage . "\n\nChanges:");
843-
:for I from=($ExpectedConfigVersionBefore + 1) to=$ExpectedConfigVersion do={
844-
:local Change ($GlobalConfigChanges->[ :tostr $I ]);
845-
:set NotificationMessage ($NotificationMessage . "\n " . \
846-
[ $IfThenElse ($NotificationsWithSymbols = true) ("\E2\97\8F") "*" ] . " " . $Change);
847-
$LogPrintExit2 info $0 ("Change " . $I . ": " . $Change) false;
848-
}
849-
} else={
850-
:set NotificationMessage ($NotificationMessage . "\n\nNews and changes are not available.");
835+
:local NotificationMessage ("The configuration version on " . $Identity . " increased " . \
836+
"to " . $ExpectedConfigVersion . ", current configuration may need modification. " . \
837+
"Please review and update global-config-overlay, then re-run global-config.");
838+
$LogPrintExit2 info $0 ($NotificationMessage) false;
839+
840+
:if ([ :len $GlobalConfigChanges ] > 0) do={
841+
:set NotificationMessage ($NotificationMessage . "\n\nChanges:");
842+
:for I from=($ExpectedConfigVersionBefore + 1) to=$ExpectedConfigVersion do={
843+
:local Change ($GlobalConfigChanges->[ :tostr $I ]);
844+
:set NotificationMessage ($NotificationMessage . "\n " . \
845+
[ $IfThenElse ($NotificationsWithSymbols = true) ("\E2\97\8F") "*" ] . " " . $Change);
846+
$LogPrintExit2 info $0 ("Change " . $I . ": " . $Change) false;
851847
}
848+
} else={
849+
:set NotificationMessage ($NotificationMessage . "\n\nNews and changes are not available.");
850+
}
852851

852+
:if ($NoNewsAndChangesNotification != true) do={
853853
:local Link;
854854
:if ($IDonate != true) do={
855855
:set NotificationMessage ($NotificationMessage . \

0 commit comments

Comments
 (0)