You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by to...@apache.org on 2020/04/12 09:43:36 UTC
[joshua] branch master updated: Remove bashism
This is an automated email from the ASF dual-hosted git repository.
tommaso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/joshua.git
The following commit(s) were added to refs/heads/master by this push:
new e4e6e0f Remove bashism
new cbbdc2e Merge pull request #90 from iadbbwarln/patch-1
e4e6e0f is described below
commit e4e6e0f9582f5fbe12d2fa9943d9ba393c05d091
Author: Rokas <54...@users.noreply.github.com>
AuthorDate: Sun Apr 12 10:38:10 2020 +0300
Remove bashism
Remove bashism and requirement for system to have /bin/sh == bash.
This is required to run on Debian10 amd64.
---
scripts/training/summarize.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/training/summarize.pl b/scripts/training/summarize.pl
index 75af859..7eef860 100755
--- a/scripts/training/summarize.pl
+++ b/scripts/training/summarize.pl
@@ -24,7 +24,7 @@ my @dirs = sort { $a <=> $b } grep /^\d[\d\.]*$/, readdir DIR;
closedir DIR;
foreach my $dir (@dirs) {
- chomp(my $readme = `[[ -e "$basedir/$dir/README" ]] && cat $basedir/$dir/README`);
+ chomp(my $readme = `[ -e "$basedir/$dir/README" ] && cat $basedir/$dir/README`);
my $bleu = get_scores("$basedir/$dir/test/final-bleu", 100.0);
my $meteor = get_scores("$basedir/$dir/test/final-meteor", 100.0);
my $time = get_time("$basedir/$dir/test/final-times");