From 9dd1eebc39df6e072179b0e66d1f3b2fe7d53116 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Wed, 27 Mar 2019 14:39:46 -0400 Subject: [PATCH] still tracking weirdness for spacemall --- scripts/core/functions.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 622102ff..5faa407d 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -931,8 +931,10 @@ echo "dirs from params are: " "${dirs[@]}" echo dirs had zero entries dirs=(.) fi -echo "dirs are: " "${dirs[@]}" - find "${dirs[@]}" -follow -maxdepth 1 -mindepth 1 -type f \( $(echo pdf png jpg jpeg odt ods docx m4a mp3 eml html mov pptx xlsx zip | sed -e 's/\([a-z0-9][a-z0-9]*\)/-iname \"*.\1\" -o /g') -iname "*.txt" \) -exec bash "$FEISTY_MEOW_SCRIPTS/files/spacem.sh" "{}" \; +echo "dirs are now: " "${dirs[@]}" + local ext_list="$(echo pdf png jpg jpeg odt ods docx m4a mp3 eml html mov pptx xlsx zip | sed -e 's/\([a-z0-9][a-z0-9]*\)/-iname \"*.\1\" -o /g')" +echo "ext_list=$ext_list" + find "${dirs[@]}" -follow -maxdepth 1 -mindepth 1 -type f $ext_list -iname "*.txt" -exec bash "$FEISTY_MEOW_SCRIPTS/files/spacem.sh" "{}" \; } ############## -- 2.34.1