summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-11-01 16:28:02 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2010-11-01 16:28:02 +0800
commitf1c8d4d49f880c49a31525fb5f6cf6cddfd9ee25 (patch)
treea16f489fabf969b70d9b577cbd106dcaf3655875
parentab7b2c73e4f8901160fe0d111e33ef7db2d3883e (diff)
downloadpttbbs-f1c8d4d49f880c49a31525fb5f6cf6cddfd9ee25.tar
pttbbs-f1c8d4d49f880c49a31525fb5f6cf6cddfd9ee25.tar.gz
pttbbs-f1c8d4d49f880c49a31525fb5f6cf6cddfd9ee25.tar.bz2
pttbbs-f1c8d4d49f880c49a31525fb5f6cf6cddfd9ee25.tar.lz
pttbbs-f1c8d4d49f880c49a31525fb5f6cf6cddfd9ee25.tar.xz
pttbbs-f1c8d4d49f880c49a31525fb5f6cf6cddfd9ee25.tar.zst
pttbbs-f1c8d4d49f880c49a31525fb5f6cf6cddfd9ee25.zip
workaround for traditional find
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5197 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-xpttbbs/util/timecap_expire.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pttbbs/util/timecap_expire.sh b/pttbbs/util/timecap_expire.sh
index dd5f16cf..b4255046 100755
--- a/pttbbs/util/timecap_expire.sh
+++ b/pttbbs/util/timecap_expire.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# expire rules
-EXPIRE_TIME=103000m
+EXPIRE_MINUTES=+103000
# extract boards
BBSHOME=$HOME
@@ -27,7 +27,7 @@ do
fi
# first stage, expire files
- find "$timecap_base" -mtime "$EXPIRE_TIME" -ls -delete
+ find "$timecap_base" -mmin "$EXPIRE_MINUTES" -ls -delete
# second stage, modify .DIR files
# dir_file="$timecap_base/archive.idx"