Fix: skip files ending with ~

This commit is contained in:
Gal Szkolnik 2022-06-19 22:42:37 -04:00
parent 7a18458347
commit b91b7b7a4a
1 changed files with 1 additions and 1 deletions

View File

@ -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..."