From 576fd5a5eee99c15923f39750ffb3a20941be705 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 11 Oct 2006 19:40:55 +0200 Subject: Check that TERM has been set to avoid problem "Error opening terminal: unknown" when the script is executed using non interactive ssh Set TERM to "linux" as default netware/BUILD/mwenv: Check that TERM has been set to avoid problem "Error opening terminal: unknown" when the script is executed using non interactive ssh --- netware/BUILD/mwenv | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'netware/BUILD') 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 + -- cgit v1.2.1