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

This commit is contained in:
Oystein Kristoffer Tveit 2024-08-12 17:51:14 +02:00
parent 1937168aa9
commit 735c42a147
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -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"