Commit 9031fc3
fix(cache): use python for mtime instead of stat (portable across macOS/Linux)
CI failure: scripts/preview-cache.sh used macOS-only stat -f %m. On Linux,
stat -f means "filesystem info" (prints "File: ...") and doesn't fall
through to the -c %Y branch, causing "File: unbound variable" under set -u.
Replaced with python3 os.path.getmtime + time.time() — portable, no platform
branching needed. stdlib-only so still complies with LESSON 0.4 (no deps).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent fba3cde commit 9031fc3
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
142 | | - | |
| 143 | + | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
0 commit comments