Skip to content

Commit 27c5009

Browse files
committed
chore: update comments
1 parent 1fbbd4f commit 27c5009

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

updater/scripts/update-dependency.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (-not (Test-Path $Path ))
2020
throw "Dependency $Path doesn't exit";
2121
}
2222

23-
# If it's a directory, we consider it a submodule dependendency. Otherwise, it must a properties-style file
23+
# If it's a directory, we consider it a submodule dependendency. Otherwise, it must a properties-style file or a script.
2424
$isSubmodule = (Test-Path $Path -PathType Container)
2525

2626
if (-not $isSubmodule)
@@ -104,7 +104,8 @@ if ("$Tag" -eq "")
104104
$tags = $tags | ForEach-Object { ($_ -split "\s+")[1] -replace '^refs/tags/', '' }
105105

106106
$headRef = ($(git ls-remote $url HEAD) -split "\s+")[0]
107-
if ("$headRef" -eq '') {
107+
if ("$headRef" -eq '')
108+
{
108109
throw "Couldn't determine repository head (no ref returned by ls-remote HEAD"
109110
}
110111
$mainBranch = (git ls-remote --heads $url | Where-Object { $_.StartsWith($headRef) }) -replace '.*\srefs/heads/', ''
@@ -139,7 +140,8 @@ if ("$Tag" -eq "")
139140
Write-Host "::set-output name=url::$url"
140141
Write-Host "::set-output name=mainBranch::$mainBranch"
141142

142-
if ("$originalTag" -eq "$latestTag") {
143+
if ("$originalTag" -eq "$latestTag")
144+
{
143145
return
144146
}
145147
$Tag = $latestTag

0 commit comments

Comments
 (0)