Skip to content

Commit

Permalink
fix: fix cache cleaner not working
Browse files Browse the repository at this point in the history
  • Loading branch information
123FLO321 committed May 7, 2022
1 parent d048593 commit e24223a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
/.idea
/.build
/Packages
/*.xcodeproj
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftTileserverCache/Misc/CacheCleaner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class CacheCleaner {

private func runOnce() {
do {
let count = Int(try escapedShellOut(to: "./Resources/Scripts/clear.bash")) ?? 0
let count = Int(try escapedShellOut(to: "./Resources/Scripts/clear.bash", arguments: [folder.path, "\(maxAgeMinutes)"])) ?? 0
if count != 0 {
logger.info("Removed \(count) Files")
}
Expand Down

0 comments on commit e24223a

Please sign in to comment.