1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-11 12:59:16 +00:00

fix(clean-dev): keep mtime variable local in doc cache cleanup

This commit is contained in:
tw93
2026-02-10 16:33:17 +08:00
parent 9c8c25116b
commit 7ab04035a5

View File

@@ -197,6 +197,7 @@ clean_xcode_documentation_cache() {
sorted_entries+=("${line#* }")
done < <(
for entry in "${index_entries[@]}"; do
local mtime
mtime=$(stat -f%m "$entry" 2> /dev/null || echo "0")
printf '%s %s\n' "$mtime" "$entry"
done | sort -rn