I hate all of it

This commit is contained in:
Brad Ganley 2024-10-21 01:50:02 -05:00
parent 9cdc27d480
commit 5e7378288f

View File

@ -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