Fixed interlace/progressive detection check in make_mkv
[videoscripts/.git] / organize_videos
index 5727d57c6e4da119668975640cdb389bdc5d8d59..f666e84f0eb56660e2b8bea198d5824d161253bf 100755 (executable)
@@ -223,7 +223,7 @@ foreach $file (`$find_cmd_with_mkv`) {
        print "-> Moving \"$srcdir/$srcfile\" to \"$dstfile\"\n";
     } else {
        # Make sure the destination directories exist
-       $errno=system("mkdir -p \"$dstdir\"");
+       $errno=system("mkdir -p -m $dirmode \"$dstdir\"");
        if($errno) { print "-E- Error creating dstdir: $dstdir\n"; next; }
        # Perform the move operation from $srcdir/$srcfile -> $dstfile
        print "-> Moving \"$srcdir/$srcfile\" to \"$dstfile\"\n";