From 55a6d4c8790fce2da04fb129582fa3a814947ce2 Mon Sep 17 00:00:00 2001 From: Markson Date: Tue, 20 Sep 2022 07:21:33 +0800 Subject: [PATCH] pwsh script: cd to source's path before build --- build-in-pwsh.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/build-in-pwsh.ps1 b/build-in-pwsh.ps1 index 1f7d46f2..00e62cac 100644 --- a/build-in-pwsh.ps1 +++ b/build-in-pwsh.ps1 @@ -57,6 +57,7 @@ Function Build-v2rayA(){ #Get Paths $TerminalPath = Get-Item -LiteralPath ./ | ForEach-Object -Process { $_.FullName } $CurrentPath = $PSScriptRoot + Set-Location -Path "$CurrentPath" #Get Informations $DateLong = git log -1 --format="%cd" --date=short $Date = $DateLong -replace "-"; ""