From 7e028b6e225274bf5a43e2d454c775ca4c371ece Mon Sep 17 00:00:00 2001
From: "Alan J. Pippin" <alan@pippins.net>
Date: Tue, 31 Jan 2012 23:43:46 -0700
Subject: [PATCH] Tweaked fix to copy back largest mkv created

---
 rip_dvd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rip_dvd b/rip_dvd
index 0035a2d..7c6bc3c 100755
--- a/rip_dvd
+++ b/rip_dvd
@@ -1166,7 +1166,7 @@ function make_dvd_mkv_image {
 
     # Move the largest created MKV file into place
     # There might be multiple ones, so just grab the largest one
-    largest_mkv_file=`/bin/ls -rS "$dstdir"/*.mkv | head -1`
+    largest_mkv_file=`/bin/ls -1S "$dstdir"/*.mkv | head -1`
     echo -e "\n   Moving largest mkv file $largest_mkv_file -> $dstmkv\n" | tee -a "$ddrescuelog"
     mv "$largest_mkv_file" "$dstmkv"
 
-- 
2.34.1