home/neovim: fix auto-clean-swapfiles when swapfile still in use

This commit is contained in:
2024-08-12 17:51:14 +02:00
parent 1937168aa9
commit 735c42a147

View File

@@ -28,7 +28,7 @@ in
for swapfile in $OLD_SWAPFILES; do for swapfile in $OLD_SWAPFILES; do
echo "Removing $swapfile" echo "Removing $swapfile"
rm -- "$swapfile" rm -- "$swapfile" || echo "Could not remove $swapfile, is it still in use?"
done done
echo "Done" echo "Done"