Skip to content

Commit 2bea8f7

Browse files
committed
Set strict mode and add shebang
1 parent 5a3c63b commit 2bea8f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

update.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#!/usr/bin/env pwsh
2+
Set-StrictMode -Version Latest
3+
$ErrorActionPreference = "Stop"
4+
15
$groovyVersion = $(((Invoke-WebRequest "https://api.github.com/repos/apache/groovy/tags" | ConvertFrom-Json).name | Select-String -Pattern "GROOVY_4" | Select-Object -First 1).ToString().replace("GROOVY_", "").replace("_", "."))
26

37
Write-Host "Updating to Groovy $groovyVersion"

0 commit comments

Comments
 (0)