|
832 | 832 | } |
833 | 833 | } |
834 | 834 |
|
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; |
851 | 847 | } |
| 848 | + } else={ |
| 849 | + :set NotificationMessage ($NotificationMessage . "\n\nNews and changes are not available."); |
| 850 | + } |
852 | 851 |
|
| 852 | + :if ($NoNewsAndChangesNotification != true) do={ |
853 | 853 | :local Link; |
854 | 854 | :if ($IDonate != true) do={ |
855 | 855 | :set NotificationMessage ($NotificationMessage . \ |
|
0 commit comments