dotfiles/private_dot_config/kitty/private_tests
Anton Volnuhin a84778a640 fix(kitty): read file permissions correctly where stat is GNU
`chezmoi apply` on Linux printed "could not regenerate kitty theme
files" every run. GNU stat reads -f as --file-system, so
`stat -f '%Lp' file` prints a block of filesystem info to stdout and
exits non-zero. The `|| stat -c '%a'` fallback then appended the real
answer to that block, and chmod rejected the result, failing the script
under set -e.

Replace the chain with a file_mode() helper in both scripts: try the GNU
form first, since BSD rejects -c cleanly without printing anything, and
accept the answer only if it is octal. Covered by a new case in
tests/test_theme_mode.sh using a stat stub that reproduces GNU's
behaviour; it fails against the old chain.
2026-08-06 02:39:49 +03:00
..
executable_verify_auto_themes.sh Sync Kitty automatic themes from maxwell 2026-07-27 22:44:57 +03:00
private_executable_test_repair_auto_themes.sh fix(kitty): preserve tab styling across themes 2026-07-28 04:53:48 +03:00
private_executable_test_theme_mode.sh fix(kitty): read file permissions correctly where stat is GNU 2026-08-06 02:39:49 +03:00
private_test_tab_bar_colors.py kitty: give active ssh tabs the same foreground as every other tab 2026-08-06 01:35:25 +03:00