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