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:
Jackbennett 2015-11-19 14:18:47 +00:00
parent 1046198648
commit b9362b0a3d

View File

@ -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