Clean Up Temp Files with trap
/home/student/bin/build.sh SRC OUT packs a folder into a tarball, using a scratch directory from mktemp. When it fails or is stopped, the scratch directories pile up in /tmp.
Change build.sh so that its scratch directory is always removed:
SRC does not exist), and it still exits with the same non-zero code as beforeSIGTERM while it runs (set BUILD_DELAY=20 to make it slow enough to stop)It must keep producing the same tarball on success.
About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Your machine is ready to start
Create a free account to open a machine and get graded.