From 4201b6f84e54a19b1d2e9c31ff44f32334ab0ced Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 02 Sep 2018 19:39:23 -0400 Subject: index, garbage: Use ${MD5SUM}, ${SHA256SUM}, ${GZIP}, and ${DATE} --- (limited to 'src/garbage.sh') diff --git a/src/garbage.sh b/src/garbage.sh index f7e96f7..58dab41 100644 --- a/src/garbage.sh +++ b/src/garbage.sh @@ -32,7 +32,7 @@ collect_garbage() # NB: The %s format conversion specifier is not specified by POSIX, but # it is supported by the GNU and BusyBox implementations of date. - cur_time=$(date '+%s') + cur_time=$("${DATE}" '+%s') for garbage in "${base_dir}/.db/garbage/"*; do if [ ! -f "${garbage}" ]; then -- cgit v0.9.1