Skip to content

Commit

Permalink
Corrected BeforeUpdate for Milkman AU Packages
Browse files Browse the repository at this point in the history
Changed Scope from script to Global
  • Loading branch information
digitalcoyote committed Nov 29, 2019
1 parent 13232ed commit 9bb3d38
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion milkman-explore/update.ps1
Expand Up @@ -14,7 +14,7 @@ function global:au_SearchReplace {
}
}

function script:au_BeforeUpdate() {
function global:au_BeforeUpdate() {

$Latest.Checksum64 = (Get-FileHash -Path "tools\$PackageName.jar" -Algorithm SHA512).Hash
$Latest.ChecksumType64 = 'sha512'
Expand Down
2 changes: 1 addition & 1 deletion milkman-graphql/update.ps1
Expand Up @@ -14,7 +14,7 @@ function global:au_SearchReplace {
}
}

function script:au_BeforeUpdate() {
function global:au_BeforeUpdate() {
$Latest.Checksum64 = (Get-FileHash -Path "tools\$PackageName.jar" -Algorithm SHA512).Hash
$Latest.ChecksumType64 = 'sha512'
}
Expand Down
2 changes: 1 addition & 1 deletion milkman-jdbc/update.ps1
Expand Up @@ -14,7 +14,7 @@ function global:au_SearchReplace {
}
}

function script:au_BeforeUpdate() {
function global:au_BeforeUpdate() {
$Latest.Checksum64 = (Get-FileHash -Path "tools\$PackageName.jar" -Algorithm SHA512).Hash
$Latest.ChecksumType64 = 'sha512'
}
Expand Down
4 changes: 2 additions & 2 deletions milkman-note/update.ps1
@@ -1,4 +1,4 @@
import-module au
import-module au

$releases = "https://github.com/warmuuh/milkman/releases"
$PackageName = "milkman-note"
Expand All @@ -14,7 +14,7 @@ function global:au_SearchReplace {
}
}

function script:au_BeforeUpdate() {
function global:au_BeforeUpdate() {
$Latest.Checksum64 = (Get-FileHash -Path "tools\$PackageName.jar" -Algorithm SHA512).Hash
$Latest.ChecksumType64 = 'sha512'
}
Expand Down
2 changes: 1 addition & 1 deletion milkman-privatebin/update.ps1
Expand Up @@ -14,7 +14,7 @@ function global:au_SearchReplace {
}
}

function script:au_BeforeUpdate() {
function global:au_BeforeUpdate() {
$Latest.Checksum64 = (Get-FileHash -Path "tools\$PackageName.jar" -Algorithm SHA512).Hash
$Latest.ChecksumType64 = 'sha512'
}
Expand Down
2 changes: 1 addition & 1 deletion milkman-scripting/update.ps1
Expand Up @@ -14,7 +14,7 @@ function global:au_SearchReplace {
}
}

function script:au_BeforeUpdate() {
function global:au_BeforeUpdate() {
$Latest.Checksum64 = (Get-FileHash -Path "tools\$PackageName.jar" -Algorithm SHA512).Hash
$Latest.ChecksumType64 = 'sha512'
}
Expand Down
2 changes: 1 addition & 1 deletion milkman-sync-git/update.ps1
Expand Up @@ -14,7 +14,7 @@ function global:au_SearchReplace {
}
}

function script:au_BeforeUpdate() {
function global:au_BeforeUpdate() {
$Latest.Checksum64 = (Get-FileHash -Path "tools\$PackageName.jar" -Algorithm SHA512).Hash
$Latest.ChecksumType64 = 'sha512'
}
Expand Down

0 comments on commit 9bb3d38

Please sign in to comment.