Restore the terminal output after building Nim (when V=0)

This commit is contained in:
Zahary Karadjov 2022-03-30 17:08:18 +03:00
parent 10a36f2b9f
commit b6685bb651
1 changed files with 4 additions and 0 deletions

View File

@ -158,8 +158,12 @@ build_nim() {
mv bin/nim "bin/nim_commit_${NIM_COMMIT_HASH}"
ln -s "nim_commit_${NIM_COMMIT_HASH}" "bin/nim${EXE_SUFFIX}"
popd
[ $V -eq 0 ] && exec >$(tty) 2>&1
}
if nim_needs_rebuilding; then
build_nim
fi
set +e