summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnetware/BUILD/mwenv10
1 files changed, 10 insertions, 0 deletions
diff --git a/netware/BUILD/mwenv b/netware/BUILD/mwenv
index d8d53293b2c..dd055ad8270 100755
--- a/netware/BUILD/mwenv
+++ b/netware/BUILD/mwenv
@@ -46,3 +46,13 @@ export LD='mwldnlm'
export LDFLAGS='-entry _LibCPrelude -exit _LibCPostlude -map -flags pseudopreemption'
export RANLIB=:
export STRIP=:
+
+#
+# Check that TERM has been set to avoid problem "Error opening
+# terminal: unknown" when the script is executed using non interactive ssh
+#
+if test -z "$TERM" -o "$TERM"=dumb
+then
+ export TERM=linux
+fi
+