Skip to content

Commit

Permalink
add windows powershell script for env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ThorstenBux committed Dec 12, 2017
1 parent 988556d commit 59a8727
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions share/packaging/win-env.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Get-ChildItem Env:
$env:HASH = git log --max-count=1 --pretty=format:"%H"
$env:MESSAGE = git log --max-count=1 --pretty=format:"%s"
$env:BUILDTIME = [int][double]::Parse((Get-Date -UFormat %s))
# $env:HASH = git log --max-count=1 --pretty=format:"%H"
# $env:MESSAGE = git log --max-count=1 --pretty=format:"%s"
$env:BUILDTIME = [int][double]::Parse((Get-Date -UFormat %s))
Write-Host "##vso[task.setvariable variable=BUILDTIME]$Env:BUILDTIME"

0 comments on commit 59a8727

Please sign in to comment.