1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 19:40:07 +00:00

style(clean): unify DRY_RUN variable check style

Use consistent "$DRY_RUN" check instead of "${DRY_RUN:-false}"
to match project conventions.
This commit is contained in:
tw93
2026-02-26 11:53:54 +08:00
parent 3e47cdb39e
commit 29ec8f7d43

View File

@@ -179,7 +179,7 @@ clean_deep_system() {
done < <(sudo find "$mem_reports_dir" -type f -mtime +30 -print0 2> /dev/null || true) done < <(sudo find "$mem_reports_dir" -type f -mtime +30 -print0 2> /dev/null || true)
if [[ "$file_count" -gt 0 ]]; then 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 if safe_sudo_find_delete "$mem_reports_dir" "*" "30" "f"; then
mem_cleaned=1 mem_cleaned=1
fi fi