tee build console output into a file
commit42737f9ea88f09dc6e57f2233804fac89b9c6147
authorKirill Zaborsky <qrilka@gmail.com>
dateWed 17 Apr 2019, 13:09 (8 years ago)
parent56c2bf8
automated/build-next.sh+1−1
@@ -132,7 +132,7 @@ esac
132132# Now do the actual build. We need to first set the owner of the home directory
133133# correctly, so we run the command as root, change owner, and then use sudo to
134134# switch back to the current user
135−docker run $ARGS_BUILD $IMAGE nice -n 15 /bin/bash -c "chown $USER $HOME && exec sudo -E -u $USER env \"HOME=$HOME\" \"PATH=\$PATH\" stackage-curator build --jobs $JOBS"
135+docker run $ARGS_BUILD $IMAGE nice -n 15 /bin/bash -c "chown $USER $HOME && exec sudo -E -u $USER env \"HOME=$HOME\" \"PATH=\$PATH\" stackage-curator build --jobs $JOBS" 2>&1 | tee "$SHORTNAME-build.log"
136136
137137# Make sure we actually need this snapshot. We used to perform this check
138138# exclusively before building. Now we perform it after as well for the case of