Skip to content

Commit f1731e4

Browse files
authored
Move normalization prior to usage (#248)
1 parent 02015bf commit f1731e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

actions/dotnet-version-updater/upgrade-projects.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ foreach ($projectDir in $projects) {
2424
Write-Host "Attempting to upgrade project: $projectDir"
2525
Write-Host ""
2626

27+
# Normalize the project directory
28+
$projectDir = [IO.Path]::GetFullPath($projectDir)
29+
2730
# Remove the git repository directory from the project directory
2831
$relativePath = $projectDir.Replace($gitRepoDir, "")
2932

@@ -37,9 +40,6 @@ foreach ($projectDir in $projects) {
3740
# Create a new branch
3841
git checkout -b $branch
3942

40-
# Normalize the project directory
41-
$projectDir = [IO.Path]::GetFullPath($projectDir)
42-
4343
# Capture all output from the upgrade-assistant command
4444
$output = upgrade-assistant upgrade "$projectDir" `
4545
--non-interactive `

0 commit comments

Comments
 (0)