From 28627b5d58fdd5df567835b473d0fc173a358d4a Mon Sep 17 00:00:00 2001 From: LangLangbart <92653266+LangLangBart@users.noreply.github.com> Date: Thu, 9 May 2024 21:04:01 +0200 Subject: [PATCH] chore: update debug mode message handling --- gh-find-code | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gh-find-code b/gh-find-code index 2917f86..a53a600 100755 --- a/gh-find-code +++ b/gh-find-code @@ -157,11 +157,11 @@ kill_processes() { cleanup() { kill_processes "$store_query_pids" - $debug_mode && printf "%bDebug mode was ON, the following files weren't deleted.%b\n" "$YELLOW_NORMAL" "$COLOR_RESET" command rm -rf "$scratch_directory" 2>/dev/null if ! $debug_mode; then command rm -rf "$debug_directory" 2>/dev/null else + printf "%bDebug mode was active. The following files have not been deleted:%b\n" "$YELLOW_NORMAL" "$COLOR_RESET" find "$debug_directory" -mindepth 1 2>/dev/null | while read -r matching_file; do if [[ ! -s $matching_file ]]; then command rm -f "$matching_file"