mirror of
https://github.com/cmderdev/cmder.git
synced 2025-06-14 05:37:51 +08:00
For PSV2.0 compat don't use $PSScriptRoot
As the build script must be executed from the `<projectroot>/scripts` directory anyway we can assume `util.ps1` is as the same path as `build.ps1` and just reference the current folder.
This commit is contained in:
@ -53,7 +53,8 @@ Param(
|
|||||||
[switch]$Compile
|
[switch]$Compile
|
||||||
)
|
)
|
||||||
|
|
||||||
. "$PSScriptRoot\utils.ps1"
|
# Dot source util functions into this scope
|
||||||
|
. ".\utils.ps1"
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
Push-Location -Path $saveTo
|
Push-Location -Path $saveTo
|
||||||
|
Reference in New Issue
Block a user