From b91b7b7a4ae4a1ce0bc9608836f9e4f7d4d97f5a Mon Sep 17 00:00:00 2001 From: Gal Szkolnik Date: Sun, 19 Jun 2022 22:42:37 -0400 Subject: [PATCH] Fix: skip files ending with ~ --- _home/dot_sz.shrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_home/dot_sz.shrc b/_home/dot_sz.shrc index 55d01fd..c92e937 100644 --- a/_home/dot_sz.shrc +++ b/_home/dot_sz.shrc @@ -12,7 +12,7 @@ if [ -d ~/.sz.shrc.d ]; then script_source+=("$(find ~/.sz.shrc.d -maxdepth 1 -type d -name "$(ps -p$$ -ho comm).post")") [ -z ${DBG_SZSHRC} ] || echo "Working with (${script_source[@]})..." for script_src in ${script_source[@]}; do - scripts=($(find $script_src -maxdepth 1 -type f -not -name "*.off" -not -name "*.swp" | sort)) + scripts=($(find $script_src -maxdepth 1 -type f -not -name "*~" -not -name "*.off" -not -name "*.swp" | sort)) #[ -z ${DBG_SZSHRC} ] || echo "Within $script_src, will review (${scripts[@]})..." for script_name in ${scripts[@]}; do [ -z ${DBG_SZSHRC} ] || echo "Checking $script_name..."