From 29ec8f7d43bf8c4f09ab9ebf96b57d1b02c331e9 Mon Sep 17 00:00:00 2001 From: tw93 Date: Thu, 26 Feb 2026 11:53:54 +0800 Subject: [PATCH] style(clean): unify DRY_RUN variable check style Use consistent "$DRY_RUN" check instead of "${DRY_RUN:-false}" to match project conventions. --- lib/clean/system.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clean/system.sh b/lib/clean/system.sh index eea1883..dbe4a44 100644 --- a/lib/clean/system.sh +++ b/lib/clean/system.sh @@ -179,7 +179,7 @@ clean_deep_system() { done < <(sudo find "$mem_reports_dir" -type f -mtime +30 -print0 2> /dev/null || true) if [[ "$file_count" -gt 0 ]]; then - if [[ "${DRY_RUN:-false}" != "true" ]]; then + if [[ "$DRY_RUN" != "true" ]]; then if safe_sudo_find_delete "$mem_reports_dir" "*" "30" "f"; then mem_cleaned=1 fi