提交 ca9a7d65 编写于 作者: R Ryan Anderson 提交者: Junio C Hamano

[PATCH] git-send-email-script - fix 2 small bugs that snuck through an untested bout of editing.

Signed-off-by: NRyan Anderson <ryan@michonline.com>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 3342d850
...@@ -73,7 +73,7 @@ if (!defined $from) { ...@@ -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) { ...@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册