1 files changed, 1 insertions(+), 7 deletions(-)
M escrih.sh
M escrih.sh => escrih.sh +1 -7
@@ 149,13 149,7 @@ clean_and_archive() {
rm ./*.wav
rm "$FOLDER"/*.flac
create_new_folder "whipper" "$2"
- # The following glob patterns are chosen so that they can match all
- # files (including empty files) except . and ..
- for file in "$FOLDER"/* "$FOLDER"/.[!.]* "$FOLDER"/..?*; do
- if [ -e "$file" ]; then
- mv "$file" "$new_folder"
- fi
- done
+ find "$FOLDER" -type f -exec mv {} "$new_folder" \;
rmdir "$FOLDER"
mv "$@" "$new_folder"
}