Skip to content

Commit 63f37b6

Browse files
committed
Optimization - save system call.
1 parent 8926615 commit 63f37b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iphoto-touch-mov-by-prev-image

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$dir = shift @ARGV || ".";
44
$dir =~ s/ /\\ /g;
55
@FILES = sort glob "$dir/*.*";
6-
@IMAGES = sort glob "$dir/*.{jpg,jpeg,JPG,JPEG}";
6+
@IMAGES = grep { /\.(jpe?g)/i } @FILES;
77

88
my $imageRef = shift @IMAGES;
99
if (! -f $imageRef) {

0 commit comments

Comments
 (0)