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"