[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>
maint
Ryan Anderson 2005-07-31 20:04:25 -04:00 committed by Junio C Hamano
parent 3342d8500f
commit ca9a7d6571
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ if (!defined $from) {
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 @@ for my $f (@ARGV) {
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) {