You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SendAlert -Subject "$PackageName Package Updated"-Message "$PackageName has been updated to version $ProductVersion."-Alert $Alert-Package $PackageName-EnvFilePath $EnvFilePath
1054
+
$alertMessage="$PackageName has been updated to version $ProductVersion.`n$pushStatus"
# If the destination path is specified, move the downloaded file to the specified destination
1054
1058
if ($FileDestinationPath) {
@@ -1079,12 +1083,12 @@ function UpdateChocolateyPackage {
1079
1083
1080
1084
# Send an alert if enabled
1081
1085
Write-Debug"Sending package error alert..."
1082
-
SendAlert -Subject "$PackageName Package Error"-Message "$PackageName detected an invalid version format. Please check the update script and files."-Alert $Alert-Package $PackageName-EnvFilePath $EnvFilePath
1086
+
SendAlert -Subject "$PackageName Package Error"-Message "$PackageName detected an invalid version format. Please check the update script and files."-Alert $Alert-EnvFilePath $EnvFilePath
1083
1087
}
1084
1088
} catch {
1085
1089
# Send an alert if enabled
1086
1090
Write-Debug"Sending package error alert..."
1087
-
SendAlert -Subject "$PackageName Package Error"-Message "$PackageName had an error when checking for updates. Please check the update script and files.`n`nError: $_"-Alert $Alert-Package $PackageName-EnvFilePath $EnvFilePath
1091
+
SendAlert -Subject "$PackageName Package Error"-Message "$PackageName had an error when checking for updates. Please check the update script and files.`n`nError: $_"-Alert $Alert-EnvFilePath $EnvFilePath
0 commit comments