Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #229 from tunisiano187/patch-1
Browse files Browse the repository at this point in the history
Filter by date not by line number to avoid problems
  • Loading branch information
majkinetor authored Nov 21, 2020
2 parents bd90576 + 3bb692a commit 696bec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ param(
$b = {
if ($Clean) { git clean -Xfd -e vars.ps1; return }
if ($ShortVersion) { $Version = [string] $Version = [Version](Get-Date).ToUniversalTime().ToString("yyyy.M.d") }
if ($LastCommitDate) { $Version = [string] $Version = [Version]$(git log -1 --date=short)[3].split(' ')[-1].replace("-",".") }
if ($LastCommitDate) { $Version = [string] $Version = [Version]$((git log -1 --date=short) | Where-Object { $_ -match "date"}).split(' ')[-1].replace("-",".") }

$module_path = "$PSScriptRoot/AU"
$module_name = Split-Path -Leaf $module_path
Expand Down

0 comments on commit 696bec0

Please sign in to comment.