Since #66 the exist status of the build script is lost, because `script` dosn't forward the exist status: buczek@theinternet:~/git/pkg-scripts (fix-build-log)$ script -q -c "false" x.log ; echo $? 0 So tools/build.sh now continues even if the build scripts fails. Bad. The fact, that the logfile is now written by the build user instead of the calling user is another unintentional change of #66.