From: Chris Koeritz Date: Wed, 30 Jan 2019 22:19:51 +0000 (-0500) Subject: back to single level for spaceming all X-Git-Tag: 2.140.115^2~44 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=ea31dec826a360f97729000c351ea7e3e7aa9877;p=feisty_meow.git back to single level for spaceming all doing a recursive spacemall was clanging way down into a lot of hierarchies it had no right to do. the expected behavior was, and is, that this just operates on a single dir at a time. --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index ae0c4207..2fda6b30 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -974,9 +974,7 @@ echo dirs had zero entries dirs=(.) fi echo "dirs are: " "${dirs[@]}" - -#was using: -maxdepth 1 -mindepth 1 - find "${dirs[@]}" -follow -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" "{}" \; + 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" "{}" \; } ##############