Update gruntmaster-compile behaviour to match POD
[gruntmaster-daemon.git] / gruntmaster-compile
index bc9c4f5d252ea4f88b8ef26d33b6ce1d99efae49..35a34244c4122f63bd1fc4fce266b817d777e1d0 100755 (executable)
@@ -3,8 +3,11 @@ use v5.14;
 no if $] > 5.017011, warnings => 'experimental::smartmatch';
 
 use File::Copy qw/copy/;
+use File::Basename qw/fileparse/;
+
+my ($format, $name) = @ARGV;
+my $basename = fileparse $name, qr/\..*/;
 
-my ($format, $basename, $name) = @ARGV;
 my $ret = fork // die $!;
 if ($ret) {
        $SIG{ALRM} = sub {kill KILL => $ret};
This page took 0.009321 seconds and 4 git commands to generate.