pwsh script: cd to source's path before build

This commit is contained in:
Markson committed 2022-09-20 07:21:33 +08:00
1 parent 74c8b3c701
commit 55a6d4c879
1 file changed
+1
+1
View File
@@ -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 "-"; ""