From dcbe548b38b5d43b173e32e7e0181b273e26a315 Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 3 Apr 2025 11:23:06 +0200 Subject: [PATCH] s --- discord/report_new_matches.ps1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/discord/report_new_matches.ps1 b/discord/report_new_matches.ps1 index 992a934..bebe835 100644 --- a/discord/report_new_matches.ps1 +++ b/discord/report_new_matches.ps1 @@ -1,6 +1,4 @@ -$logprefix = get-date -Format ddMMyyy_HHmmss -#up -Start-Transcript -Path "../logs/report_new_matches_$logprefix.log" -Append + if ($PSScriptRoot.length -eq 0) { $scriptroot = Get-Location @@ -8,6 +6,11 @@ if ($PSScriptRoot.length -eq 0) { else { $scriptroot = $PSScriptRoot } + +$logprefix = get-date -Format ddMMyyy_HHmmss +#up +Start-Transcript -Path "$scriptroot/../logs/report_new_matches_$logprefix.log" -Append + . $scriptroot\..\includes\ps1\lockfile.ps1 new-lock -by "report_new_matches"