From 5e7378288f4b65d84f34781f0529f98a6c8af984 Mon Sep 17 00:00:00 2001 From: Brad Ganley Date: Mon, 21 Oct 2024 01:50:02 -0500 Subject: [PATCH] I hate all of it --- Windows DVR/WindowsDVRCleanup.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Windows DVR/WindowsDVRCleanup.ps1 b/Windows DVR/WindowsDVRCleanup.ps1 index a9e852a..ca979e8 100644 --- a/Windows DVR/WindowsDVRCleanup.ps1 +++ b/Windows DVR/WindowsDVRCleanup.ps1 @@ -1,4 +1,4 @@ -$envFilePath = ".\env" +$envFilePath = ".\.env" if (Test-Path $envFilePath) { Get-Content $envFilePath | ForEach-Object { if ($_ -match "^(.*?)=(.*)$") { @@ -12,7 +12,7 @@ if (Test-Path $envFilePath) { exit } -$maxAge = [System.Environment]::GetEnvironmentVariable("MAX_AGE") +$maxAge = -([System.Environment]::GetEnvironmentVariable("MAX_AGE")) $outputPath = [System.Environment]::GetEnvironmentVariable("OUTPUT_PATH") # Get files older than MAX_AGE hours and delete them