Fix gruntmaster-problem edit
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 6 Feb 2015 19:16:33 +0000 (21:16 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 6 Feb 2015 19:16:33 +0000 (21:16 +0200)
gruntmaster-problem

index 7e979cdc05164e6c8c4788efb6d19756e7ada04b..7fe2f76a7a13a4e262a4d6170b47e90f02cf7e8f 100755 (executable)
@@ -112,7 +112,7 @@ sub cmd_edit{
        close $fh;
        my $editor = $ENV{EDITOR} // 'editor';
        system $editor, $file;
-       $db->problem($id)->update({$col => read_file $file});
+       $db->problem($id)->update({$col => scalar read_file $file}) or die "$!";
 }
 
 sub cmd_list{
This page took 0.011378 seconds and 4 git commands to generate.