Skip to content

Commit 191b3c9

Browse files
committed
fix: rename m2PathItem to m2LinkTarget
1 parent dc96c1b commit 191b3c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

maven-wrapper-distribution/src/resources/only-mvnw.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ if (-not (Test-Path -Path $MAVEN_M2_PATH)) {
8989
}
9090

9191
$MAVEN_WRAPPER_DISTS = $null
92-
$m2PathItem = (Get-Item -Path $MAVEN_M2_PATH -Force).Target
93-
if ($m2PathItem -is [array] -and $m2PathItem.Count -gt 0) {
94-
$MAVEN_WRAPPER_DISTS = $m2PathItem[0] + "/wrapper/dists"
92+
$m2LinkTarget = (Get-Item -Path $MAVEN_M2_PATH -Force).Target
93+
if ($m2LinkTarget -is [array] -and $m2LinkTarget.Count -gt 0) {
94+
$MAVEN_WRAPPER_DISTS = "$($m2LinkTarget[0])/wrapper/dists"
9595
} else {
9696
$MAVEN_WRAPPER_DISTS = "$MAVEN_M2_PATH/wrapper/dists"
9797
}

0 commit comments

Comments
 (0)