Skip to content

Commit

Permalink
file cant have ':' in the name (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiranAvidov authored Aug 1, 2023
1 parent a667aed commit d62129a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/windows/agent.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ function Write-AgentSupport {
Write-Host
}


# Agent log file timestamp
$script:AgentLogFileTimestamp = Get-Date -Format 'yyyy-MM-ddTHH-mm-ss'
# Agent version
$script:AgentVersion = Get-Content "$env:TEMP\Logzio\version"

Expand Down
1 change: 0 additions & 1 deletion scripts/windows/consts.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ $script:KubernetesResourcesDir = "$script:LogzioResourcesDir\k8s"

## Agent files
# Log file path
$script:AgentLogFileTimestamp = Get-Date -Format 'yyyy-MM-ddTHH:mm:ss'
$script:AgentLogFile = "$script:LogzioAppDataDir\logzio_agent$script:AgentLogFileTimestamp.log"
# Task post run script file path
$script:TaskPostRunFile = "$script:LogzioTempDir\task_post_run.ps1"
Expand Down
1 change: 1 addition & 0 deletions scripts/windows/utils_functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ function Invoke-Task {
$local:Job = Start-ThreadJob -ScriptBlock {
$ProgressPreference = 'SilentlyContinue'
$WarningPreference = 'SilentlyContinue'
$script:AgentLogFileTimestamp = $using:AgentLogFileTimestamp

try {
. $using:ConstsFile -ErrorAction Stop
Expand Down

0 comments on commit d62129a

Please sign in to comment.