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=11a17764b481254af85ce318bac15b0db7b0726d;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"; }