Tweaked fix to copy back largest mkv created
[rip_dvd/.git] / rip_dvd
diff --git a/rip_dvd b/rip_dvd
index 0035a2d284ad8ec25a20e895a4296027cce22503..7c6bc3cc5f236c360bd73308b1461df1b6bcbc26 100755 (executable)
--- 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"