Skip to content

Commit e39fa6d

Browse files
committed
Push/Pop-Location
1 parent e5c9048 commit e39fa6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ function Initialize-Docker() {
126126
# # Remove docker daemon config setting "data-root" to Z:\docker (NVMe mount) to avoid hitting moby/moby#48093
127127
# Remove-Item -Path $dockerDaemonConfig
128128

129-
cd 'C:\Windows'
129+
Push-Location -Path 'C:\Windows'
130130
Rename-Item SystemTemp SystemTemp.old
131131
cmd.exe /c "mklink /D SystemTemp 'Z:\docker'"
132-
cd -
132+
Pop-Location
133133
}
134134
Get-ComputerInfo | Select-Object OsName, OsBuildNumber, WindowsVersion
135135
Get-WindowsFeature Containers | Out-String

0 commit comments

Comments
 (0)