Skip to content

Commit

Permalink
Fix typo in release script regex
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Sep 15, 2016
1 parent ce59abd commit fd4a683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev-bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set -e
VERSION=$(perl -MFile::Slurp::Tiny=read_file -MDateTime <<EOF
use v5.16;
my \$log = read_file(q{CHANGELOG.md});
\$log =~ /\n(\d+\.\d+\.\d+(?:-[\w\.\-]+)) \((\d{4}-\d{2}-\d{2})\)\n/;
die 'Release time is not today!' unless DateTime->now->ymd eq \$2;
\$log =~ /\n(\d+\.\d+\.\d+(?:-[\w\.\-]+)?) \((\d{4}-\d{2}-\d{2})\)\n/;
die "Release time (\$2) is not today!" unless DateTime->now->ymd eq \$2;
say \$1;
EOF
)
Expand Down

0 comments on commit fd4a683

Please sign in to comment.