Get rid of unnecessary barrier. Improve comment.
[pintos-anon] / grading / vm / prep-disk
index 10afa8f5530a7d79c117124d2ef74fa85841769f..50a6b799cc7ed6a834283cedfbc29aada498c169 100755 (executable)
@@ -2,6 +2,7 @@
 
 use strict;
 use Getopt::Long;
+use POSIX;
 
 my ($pintos) = "pintos";
 my ($os_disk) = "../../src/userprog/build/os.dsk";
@@ -43,5 +44,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";
 }