From: Zdeněk Šustr Date: Wed, 28 Jul 2010 14:17:15 +0000 (+0000) Subject: Suppress error messages from stty X-Git-Tag: glite-security-gsoap-plugin_R_2_1_2_2~10 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=2ed5b933dee069509192aba5dbf9e13ff108adc0;p=jra1mw.git Suppress error messages from stty --- diff --git a/org.glite.testsuites.ctb/LB/tests/test-common.sh b/org.glite.testsuites.ctb/LB/tests/test-common.sh index fe64166..68c83e3 100644 --- a/org.glite.testsuites.ctb/LB/tests/test-common.sh +++ b/org.glite.testsuites.ctb/LB/tests/test-common.sh @@ -49,7 +49,7 @@ export LC_ALL # Seek for terminal size and, if needed, set default size if [ -z "${LINES}" -o -z "${COLUMNS}" ]; then - stty_size=`stty size` + stty_size=`stty size 2> /dev/null` if [ $? = 0 ]; then LINES=`echo ${stty_size} | awk '{print $1}'` COLUMNS=`echo ${stty_size} | awk '{print $2}'`