From 78c444daa8ff292a83e912f44e063e106d3b48df Mon Sep 17 00:00:00 2001 From: "Go Johansson (neku)" Date: Sun, 1 Jan 2023 13:00:23 +0100 Subject: [PATCH] Update checkfiles.sh --- src/static/scripts/checkfiles.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/static/scripts/checkfiles.sh b/src/static/scripts/checkfiles.sh index 5c9e4bd..07fab32 100644 --- a/src/static/scripts/checkfiles.sh +++ b/src/static/scripts/checkfiles.sh @@ -1,2 +1,3 @@ #! /bin/sh -find /path/to/files/ -mmin +1440 -exec rm -f {} \; \ No newline at end of file +hours=$((XXX*60)) +find /path/to/files/ -mmin +$hours -exec rm -f {} \; \ No newline at end of file