From: Ben Pfaff Date: Fri, 31 Dec 2004 00:30:33 +0000 (+0000) Subject: Fix brown bag bug in previous version. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59c7319444e4afb57b8161840deb93ccf4935c65;p=pintos-anon Fix brown bag bug in previous version. --- diff --git a/grading/userprog/prep-disk b/grading/userprog/prep-disk index f1b766c..f37a682 100755 --- a/grading/userprog/prep-disk +++ b/grading/userprog/prep-disk @@ -62,6 +62,7 @@ sub put_file { sub xsystem { my ($expect, $cmd) = @_; print "$cmd\n"; + my ($code) = system ($cmd); WIFEXITED ($code) && WEXITSTATUS ($code) == $expect or die "command failed\n"; }