diff options
author | Ladar Levison <ladar@lavabit.com> | 2019-01-30 09:51:51 +0300 |
---|---|---|
committer | Ladar Levison <ladar@lavabit.com> | 2019-01-30 09:51:51 +0300 |
commit | 9a095024d101bd76f25a58fe59062853b93a6ac9 (patch) | |
tree | bcd118b7d5b4c9d55fdec3567dad97223882af16 | |
parent | b708655560cde9bbbe898d2dd397a7f62cc316c3 (diff) |
Workaround needed to run the dependency builder without a tty.
-rwxr-xr-x | dev/scripts/builders/build.lib.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dev/scripts/builders/build.lib.sh b/dev/scripts/builders/build.lib.sh index 42803668..22c21506 100755 --- a/dev/scripts/builders/build.lib.sh +++ b/dev/scripts/builders/build.lib.sh @@ -72,10 +72,15 @@ fi # normal dependency checks, this making the build process faster. The QUICK option is undocumented, because in general, # developers interacting directly with the build.lib.sh script, should be running the "check" step to ensure # they have a valid, and properly configured, and functional platform capable of running magma. -if [ -z "$QUICK" ] || [ "$QUICK" != "yes" ]; then +if [ -z QUICK ] || [ "$QUICK" != "yes" ]; then QUICK="no" fi +# If the TERM environment variable is missing, then tput may trigger a fatal error. +if [ -z TERM ] || [ "$TERM" == "" ]; then + export TERM="vt100" +fi + error() { if [ $? -ne 0 ]; then wait |