Commit 576fd5a5 authored by unknown's avatar unknown
Browse files

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
parent 8b1f416b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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