commit ff21368ce02dc7039101c05e82e36e6c5444794b parent b13d4f8e0d6869f6bc98c658d95e8e2d6ef6c404 Author: Peter <peter@minskio.co.uk> Date: Mon, 12 Oct 2026 16:02:35 +0100 Notes cleans up empty directories too Diffstat:
| M | scripts/notes.nix | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/notes.nix b/scripts/notes.nix @@ -17,8 +17,8 @@ exit 1 fi - # Delete empty notes files - find "$notes_dir" -type f -not -path '*/.git/*' -empty -print -delete + # Delete empty files and directories + find "$notes_dir" -not -path '*/.git/*' -empty -print -delete # Commit anything new git -C "$notes_dir" add -A