From 39a5b59c4cd32a5bb248b62d43abf08b6bb16a71 Mon Sep 17 00:00:00 2001 From: Chocolatey Date: Sat, 17 Feb 2018 00:36:43 +0000 Subject: [PATCH] AU: 1 updated - SourceTree [skip ci] https://gist.github.com/a14b1e5bfaf70839b338eb1ab7f8226f/d7f994a7c7e200e3027711b5a21a748998dc425a --- automatic/sourcetree/sourcetree.nuspec | 2 +- automatic/sourcetree/tools/chocolateyInstall.ps1 | 4 ++-- automatic/sourcetree/tools/chocolateyUninstall.ps1 | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/automatic/sourcetree/sourcetree.nuspec b/automatic/sourcetree/sourcetree.nuspec index c2de2490427..ab49758cb69 100644 --- a/automatic/sourcetree/sourcetree.nuspec +++ b/automatic/sourcetree/sourcetree.nuspec @@ -4,7 +4,7 @@ SourceTree SourceTree - 2.4.7.0 + 2.4.8.0 Atlassian chocolatey http://www.sourcetreeapp.com diff --git a/automatic/sourcetree/tools/chocolateyInstall.ps1 b/automatic/sourcetree/tools/chocolateyInstall.ps1 index e2caa6d8dab..d06b445b4fd 100644 --- a/automatic/sourcetree/tools/chocolateyInstall.ps1 +++ b/automatic/sourcetree/tools/chocolateyInstall.ps1 @@ -3,11 +3,11 @@ $packageArgs = @{ packageName = 'SourceTree' fileType = 'EXE' - url = 'https://downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-2.4.7.0.exe' + url = 'https://downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-2.4.8.0.exe' softwareName = 'SourceTree' - checksum = '359eb011a214233aff360f0e2f17d54441ff21b2422a9c71ff831b816f5438fe' + checksum = '7b48d591124b5fb28ffabc7f3a0d89e7dfa6d78e4ab30b158a64b976dbf82b50' checksumType = 'sha256' silentArgs = "/passive" diff --git a/automatic/sourcetree/tools/chocolateyUninstall.ps1 b/automatic/sourcetree/tools/chocolateyUninstall.ps1 index fd414384218..bca9cf7e4a6 100644 --- a/automatic/sourcetree/tools/chocolateyUninstall.ps1 +++ b/automatic/sourcetree/tools/chocolateyUninstall.ps1 @@ -1,11 +1,11 @@ -$ErrorActionPreference = 'Stop' +$ErrorActionPreference = 'Stop' $packageName = 'sourcetree' $softwareNamePattern = 'SourceTree' [array] $key = Get-UninstallRegistryKey $softwareNamePattern if ($key.Count -eq 1) { - $key | % { + $key | ForEach-Object { $packageArgs = @{ packageName = $packageName silentArgs = "--uninstall" @@ -23,6 +23,6 @@ elseif ($key.Count -gt 1) { Write-Warning "$($key.Count) matches found!" Write-Warning "To prevent accidental data loss, no programs will be uninstalled." Write-Warning "Please alert package maintainer the following keys were matched:" - $key | % {Write-Warning "- $($_.DisplayName)"} + $key | ForEach-Object {Write-Warning "- $($_.DisplayName)"} }