From ea31dec826a360f97729000c351ea7e3e7aa9877 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Wed, 30 Jan 2019 17:19:51 -0500 Subject: [PATCH] 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. --- scripts/core/functions.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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" "{}" \; } ############## -- 2.34.1