Skip to content

Commit

Permalink
Update build.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
prikolium-cfx authored May 1, 2024
1 parent d4ec45f commit 24f2695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Write-Host "Current directory: $CURRENT_DIR"
$MOUNT_DIR = Split-Path -Path $CURRENT_DIR -Parent
Write-Host "Mount directory: $MOUNT_DIR"

Remove-PSDrive -Name "X" -ErrorAction SilentlyContinue
New-PSDrive -Name "X" -PSProvider FileSystem -Root $MOUNT_DIR -Persist
Invoke-Expression "subst X: /D" -ErrorAction SilentlyContinue
Invoke-Expression "subst X: $MOUNT_DIR" -ErrorAction SilentlyContinue

Get-ChildItem X:\

Expand All @@ -34,4 +34,4 @@ $DEPOT_TOOLS_DIR = "X:\depot_tools"
--with-pgo-profiles $args

# Attempt to clean up and remove X: mapping at the end; ignore errors
Remove-PSDrive -Name "X" -ErrorAction SilentlyContinue
Invoke-Expression "subst X: /D" -ErrorAction SilentlyContinue

0 comments on commit 24f2695

Please sign in to comment.