From c1c833eb2aba2febe52b3c6baf510215d1613dad Mon Sep 17 00:00:00 2001 From: q Date: Thu, 6 Nov 2025 15:22:29 +0200 Subject: [PATCH] find removed files --- rc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rc b/rc index 9bac8b3..6ef6e76 100755 --- a/rc +++ b/rc @@ -50,7 +50,11 @@ function _q-tools-update-binary { local obsoleted_file if [[ -e .removed_files.txt ]]; then while read obsoleted_file; do - echo removing "$obsoleted_file" + if [[ -e "$obsoleted_file" ]]; then + echo removing "$obsoleted_file" + else + echo no such file: "$obsoleted_file" + fi done < .removed_files.txt fi set +u