From 2125fd86b7d48583b5f1b0408f2ab6ef144430da Mon Sep 17 00:00:00 2001 From: Krzysztof Rudnicki Date: Mon, 16 Dec 2024 18:09:26 +0100 Subject: [PATCH] feat: conveert mkv videos additionally --- .gitignore | 1 + Bash/convert.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0711527..7f3113d 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,4 @@ testem.log # System files .DS_Store Thumbs.db +*.mkv \ No newline at end of file diff --git a/Bash/convert.sh b/Bash/convert.sh index 3e03cc5..7c02225 100755 --- a/Bash/convert.sh +++ b/Bash/convert.sh @@ -80,7 +80,7 @@ export OUTPUT_DIR # Find and process videos if [ -d "$INPUT_PATH" ]; then - find "$INPUT_PATH" -type f -name "*.mp4" -o -name "*.mkv" -o -name "*.avi" -o -name "*.webm" -exec bash -c 'move_video "$0"' {} \; + find "$INPUT_PATH" \( -name "*.mkv" -o -name "*.mp4" -o -name "*.avi" -o -name "*.webm" \) -type f -exec bash -c 'move_video "$0"' {} \; else move_video "$INPUT_PATH" fi