fix: take the release-check version from the recipe argument
This commit is contained in:
@@ -120,7 +120,7 @@ release-check version:
|
||||
#!/usr/bin/env perl
|
||||
# The version arrives through the recipe interpolation: just does not hand
|
||||
# positional arguments to a shebang script's @ARGV.
|
||||
my $version = q{ {{version}} };
|
||||
my $version = "{{version}}";
|
||||
$version =~ m{\Av?\d+\.\d+\.\d+\z} or die qq{usage: just release-check X.Y.Z\n};
|
||||
my $branch = qx{git rev-parse --abbrev-ref HEAD};
|
||||
chomp $branch;
|
||||
|
||||
Reference in New Issue
Block a user