[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>
This commit is contained in:

committed by
Junio C Hamano

parent
3342d8500f
commit
ca9a7d6571
@ -73,7 +73,7 @@ if (!defined $from) {
|
|||||||
do {
|
do {
|
||||||
$_ = $term->readline("Who should the emails appear to be from? ",
|
$_ = $term->readline("Who should the emails appear to be from? ",
|
||||||
$from);
|
$from);
|
||||||
while (!defined $_);
|
} while (!defined $_);
|
||||||
|
|
||||||
$from = $_;
|
$from = $_;
|
||||||
print "Emails will be sent from: ", $from, "\n";
|
print "Emails will be sent from: ", $from, "\n";
|
||||||
@ -117,7 +117,7 @@ for my $f (@ARGV) {
|
|||||||
opendir(DH,$f)
|
opendir(DH,$f)
|
||||||
or die "Failed to opendir $f: $!";
|
or die "Failed to opendir $f: $!";
|
||||||
|
|
||||||
push @files, map { +$f . "/" . $_ } grep { -f $_ }
|
push @files, grep { -f $_ } map { +$f . "/" . $_ }
|
||||||
sort readdir(DH);
|
sort readdir(DH);
|
||||||
|
|
||||||
} elsif (-f $f) {
|
} elsif (-f $f) {
|
||||||
|
Reference in New Issue
Block a user