projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update.
[pintos-anon]
/
grading
/
vm
/
prep-disk
diff --git
a/grading/vm/prep-disk
b/grading/vm/prep-disk
index 10afa8f5530a7d79c117124d2ef74fa85841769f..50a6b799cc7ed6a834283cedfbc29aada498c169 100755
(executable)
--- a/
grading/vm/prep-disk
+++ b/
grading/vm/prep-disk
@@
-2,6
+2,7
@@
use strict;
use Getopt::Long;
use strict;
use Getopt::Long;
+use POSIX;
my ($pintos) = "pintos";
my ($os_disk) = "../../src/userprog/build/os.dsk";
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";
sub xsystem {
my ($cmd) = @_;
print "$cmd\n";
- system ($cmd) == 0
||
die "command failed\n";
+ system ($cmd) == 0
or
die "command failed\n";
}
}