mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +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:
parent
1046198648
commit
b9362b0a3d
@ -53,7 +53,8 @@ Param(
|
||||
[switch]$Compile
|
||||
)
|
||||
|
||||
. "$PSScriptRoot\utils.ps1"
|
||||
# Dot source util functions into this scope
|
||||
. ".\utils.ps1"
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
Push-Location -Path $saveTo
|
||||
|
Loading…
Reference in New Issue
Block a user