Fix bogus return value from `pintos' utility when calling Bochs
[pintos-anon] / grading / userprog / prep-disk
index 1d34e5fb1a340ecaac39c084dc3f7c4abeafce8f..f525b07adc38fbfb6bf21d81d469066a809887f3 100755 (executable)
@@ -2,6 +2,7 @@
 
 use strict;
 use Getopt::Long;
+use POSIX;
 
 my ($pintos) = "pintos";
 my ($os_disk) = "../../src/userprog/build/os.dsk";
@@ -61,5 +62,5 @@ sub put_file {
 sub xsystem {
     my ($cmd) = @_;
     print "$cmd\n";
-    system ($cmd) == 0 || die "command failed\n";
+    system ($cmd) == 0 or die "command failed\n";
 }