Skip to content

Commit

Permalink
Redirect ct-ng output to /dev/null.
Browse files Browse the repository at this point in the history
Avoids polluting our CI logs.
  • Loading branch information
Alexhuszagh committed Jun 1, 2022
1 parent 5f4770f commit cc28d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/crosstool-ng.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ main() {
# work with any bash functions: must call a command.
timeout "${timeout}" \
su "${username}" -c \
"STOP=${step} CT_DEBUG_CT_SAVE_STEPS=1 ${crosstooldir}/bin/ct-ng build.${nproc}"
"STOP=${step} CT_DEBUG_CT_SAVE_STEPS=1 ${crosstooldir}/bin/ct-ng build.${nproc} &> /dev/null"
}

while download; [ $? -eq 124 ]; do
# Indicates a timeout, repeat the command.
sleep "${sleep}"
done
su "${username}" -c "CT_DEBUG_CT_SAVE_STEPS=1 ${crosstooldir}/bin/ct-ng build.${nproc}"
su "${username}" -c "CT_DEBUG_CT_SAVE_STEPS=1 ${crosstooldir}/bin/ct-ng build.${nproc} &> /dev/null"

popd

Expand Down

0 comments on commit cc28d66

Please sign in to comment.