From cdd811c0738f8b83032002a04dc5c070cdb1f1ce Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Thu, 27 Feb 2014 12:20:41 +0200 Subject: [PATCH] Fix running java/perl/python programs with arguments --- lib/Gruntmaster/Daemon/Format.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Gruntmaster/Daemon/Format.pm b/lib/Gruntmaster/Daemon/Format.pm index 5b5081e..b80dd7d 100644 --- a/lib/Gruntmaster/Daemon/Format.pm +++ b/lib/Gruntmaster/Daemon/Format.pm @@ -26,9 +26,9 @@ sub command_and_args{ given($format) { "./$basename" when [qw/C CPP PASCAL/]; "./$basename.exe" when 'MONO'; - "java $basename" when 'JAVA'; - "perl $basename" when 'PERL'; - "python $basename" when 'PYTHON'; + java => $basename when 'JAVA'; + perl => $basename when 'PERL'; + python => $basename when 'PYTHON'; default { die "Don't know how to execute format $format" } } } -- 2.39.2