I hate all of it
This commit is contained in:
parent
9cdc27d480
commit
5e7378288f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user