projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a69cd01
)
still tracking weirdness for spacemall
author
Chris Koeritz
<fred@gruntose.com>
Wed, 27 Mar 2019 18:39:46 +0000
(14:39 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Wed, 27 Mar 2019 18:39:46 +0000
(14:39 -0400)
scripts/core/functions.sh
patch
|
blob
|
history
diff --git
a/scripts/core/functions.sh
b/scripts/core/functions.sh
index 622102ff8eafee515f925d9791d9a1854393cab6..5faa407d9244eff64ed3d9b344917fc04333f855 100644
(file)
--- 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 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" "{}" \;
}
##############
}
##############