Skip to content

Commit

Permalink
AU: 1 updated - SourceTree
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey committed Feb 17, 2018
1 parent 47a9b6b commit 39a5b59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion automatic/sourcetree/sourcetree.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<metadata>
<id>SourceTree</id>
<title>SourceTree</title>
<version>2.4.7.0</version>
<version>2.4.8.0</version>
<authors>Atlassian</authors>
<owners>chocolatey</owners>
<projectUrl>http://www.sourcetreeapp.com</projectUrl>
Expand Down
4 changes: 2 additions & 2 deletions automatic/sourcetree/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions automatic/sourcetree/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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)"}
}

0 comments on commit 39a5b59

Please sign in to comment.