From: Chris Koeritz Date: Wed, 27 Mar 2019 18:39:46 +0000 (-0400) Subject: still tracking weirdness for spacemall X-Git-Tag: 2.140.115^2~22 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=9dd1eebc39df6e072179b0e66d1f3b2fe7d53116;p=feisty_meow.git still tracking weirdness for spacemall --- 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" "{}" \; } ##############