From fc70fdb128bf05cb78cac6c76318b3e825cd31e4 Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Tue, 23 Feb 2021 18:40:45 -0700 Subject: [PATCH] fixed cleanup stall --- setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup b/setup index 5559699..ca3cec6 100755 --- a/setup +++ b/setup @@ -198,7 +198,7 @@ function CLEAN_BACKUP() { [Yy]* ) echo 'cleaning backup files'; for file in $(find "$HOME/.config/" -name \*.bak 2>/dev/null); do rm $file && echo cleaned $file; done - for file in $(find "$HOME" -name .\*.bak 2>/dev/null); do rm $file && echo cleaned $file; done + for file in $(find "$HOME" -maxdepth 1 -name .\*.bak 2>/dev/null); do rm $file && echo cleaned $file; done ;; * ) echo 'skipping cleanup';; esac