[PATCH] git-send-email-script - fix 2 small bugs that snuck through an untested bout of editing.
Signed-off-by: Ryan Anderson <ryan@michonline.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff --git a/git-send-email-script b/git-send-email-script
index 4927cec..59bd691 100755
--- a/git-send-email-script
+++ b/git-send-email-script
@@ -73,7 +73,7 @@
do {
$_ = $term->readline("Who should the emails appear to be from? ",
$from);
- while (!defined $_);
+ } while (!defined $_);
$from = $_;
print "Emails will be sent from: ", $from, "\n";
@@ -117,7 +117,7 @@
opendir(DH,$f)
or die "Failed to opendir $f: $!";
- push @files, map { +$f . "/" . $_ } grep { -f $_ }
+ push @files, grep { -f $_ } map { +$f . "/" . $_ }
sort readdir(DH);
} elsif (-f $f) {