diff options
author | msvensson@shellback.(none) <> | 2006-10-11 19:40:55 +0200 |
---|---|---|
committer | msvensson@shellback.(none) <> | 2006-10-11 19:40:55 +0200 |
commit | 50cc20aff13beaca3db4c97441d16724932149ec (patch) | |
tree | 8d7d51b8bb82dbc68ea949586d5441f7f75ee27b /netware | |
parent | 7a6493f3766c2e2b121b6603acce8834cbfb5e32 (diff) | |
download | mariadb-git-50cc20aff13beaca3db4c97441d16724932149ec.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
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 + |