fix: handle file names with ':' in them

This commit is contained in:
iforiq 2022-10-31 21:53:00 -07:00 committed by Andrew Gaul
parent 2e77920943
commit 6f4bf55d5e

View File

@ -90,7 +90,7 @@ find "${STATS_CDIR}" -type f -exec stat -c "%X:%n" "{}" \; | sort | while read -
do
echo "Looking at ${part}"
TMP_ATIME=$(echo "${part}" | cut -d: -f1)
TMP_STATS=$(echo "${part}" | cut -d: -f2)
TMP_STATS=$(echo "${part}" | cut -d: -f2-)
TMP_CFILE=$(echo "${TMP_STATS}" | sed -e "s/\\.${BUCKET}\\.stat/${BUCKET}/")
if [ "$(stat -c %X "${TMP_STATS}")" -eq "${TMP_ATIME}" ]; then