From 735c42a1470e2e3e7be37ba90e3bcecea825fd79 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 12 Aug 2024 17:51:14 +0200 Subject: [PATCH] home/neovim: fix auto-clean-swapfiles when swapfile still in use --- home/programs/neovim/auto-clean-swapfiles.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/programs/neovim/auto-clean-swapfiles.nix b/home/programs/neovim/auto-clean-swapfiles.nix index 57ca005..f279636 100644 --- a/home/programs/neovim/auto-clean-swapfiles.nix +++ b/home/programs/neovim/auto-clean-swapfiles.nix @@ -28,7 +28,7 @@ in for swapfile in $OLD_SWAPFILES; do echo "Removing $swapfile" - rm -- "$swapfile" + rm -- "$swapfile" || echo "Could not remove $swapfile, is it still in use?" done echo "Done"