From 842f828ffa6bc307d04b027a904ec293922355ff Mon Sep 17 00:00:00 2001 From: "Alan J. Pippin" Date: Thu, 4 Aug 2016 23:34:25 -0600 Subject: [PATCH] Fixed bug in not removing original video files when we should have --- merge_videos_by_day | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/merge_videos_by_day b/merge_videos_by_day index 42744fe..27f2e2b 100755 --- a/merge_videos_by_day +++ b/merge_videos_by_day @@ -194,7 +194,7 @@ foreach $ext (sort keys %videos) { print "$cmd\n"; if(!defined $opt_k) { foreach $video (@{$videos{$ext}{$video}}) { - if(($save_originals) && ($video =~ /\.$originals_file_ext$/)) { + if(($save_originals) && ($video =~ /\.$originals_file_ext/)) { print "-> Saving the original video $video\n"; print("mv $video \"$origpathname/".basename(dirname($video))."_".basename($video)."\n"); } else { @@ -216,7 +216,7 @@ foreach $ext (sort keys %videos) { # Remove the individual video files if(!defined $opt_k) { foreach $srcvideo (@{$videos{$ext}{$video}}) { - if(($save_originals) && ($srcvideo =~ /\.$originals_file_ext$/)) { + if(($save_originals) && ($srcvideo =~ /\.$originals_file_ext/)) { print "-> Saving the original video $srcvideo to $origpathname\n"; system("mv $srcvideo \"$origpathname/".basename(dirname($srcvideo))."_".basename($srcvideo)); } else { -- 2.34.1