]> jfr.im git - uguu.git/commitdiff
Update checkfiles.sh
authorGo Johansson (neku) <redacted>
Sun, 1 Jan 2023 12:00:23 +0000 (13:00 +0100)
committerGo Johansson (neku) <redacted>
Sun, 1 Jan 2023 12:00:23 +0000 (13:00 +0100)
src/static/scripts/checkfiles.sh

index 5c9e4bdbc1a916f782cb35573c06346d5cda9829..07fab32d45e06442ae5b24608154db2f2d6612ed 100644 (file)
@@ -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