diff options
author | unknown <msvensson@shellback.(none)> | 2006-10-11 19:40:55 +0200 |
---|---|---|
committer | unknown <msvensson@shellback.(none)> | 2006-10-11 19:40:55 +0200 |
commit | 576fd5a5eee99c15923f39750ffb3a20941be705 (patch) | |
tree | 8d7d51b8bb82dbc68ea949586d5441f7f75ee27b /netware | |
parent | 8b1f416be8aa6d70de431dcc83072fb07552e593 (diff) | |
download | mariadb-git-576fd5a5eee99c15923f39750ffb3a20941be705.tar.gz |
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
Diffstat (limited to 'netware')
-rwxr-xr-x | netware/BUILD/mwenv | 10 |
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 + |