X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=merge_videos_by_day;h=4cf293ddea47cbd2b699faf4febcaa0fbe22fff7;hb=70d3ba3c710f3fe234188d492b42338aa2069513;hp=6dce13c1eb54d88f48b340c8693622ddceb1ef07;hpb=c91b8b9feda0a1fc3221cffd3e28cee33e919b5a;p=videoscripts%2F.git diff --git a/merge_videos_by_day b/merge_videos_by_day index 6dce13c..4cf293d 100755 --- a/merge_videos_by_day +++ b/merge_videos_by_day @@ -282,14 +282,15 @@ foreach $ext (sort keys %videos) { my $errno = system("$cmd"); $errno = $errno >> 8; if($errno) { die "-E- make_mkv encountered some errors with exit code $errno\n"; } + system("ls -l \"$srcpathname/\" > /dev/null"); # Make sure the video file is there # Fix the permissions system("chown $owner \"$video\""); system("chgrp $group \"$video\""); system("chmod $mode \"$video\""); # Remove the individual video files if(!defined $opt_k) { - foreach $video (@{$videos{$ext}{$video}}) { - system("rm -f $video"); + foreach $srcvideo (@{$videos{$ext}{$video}}) { + system("rm -f $srcvideo"); } } }