Suppress error messages from stty
authorZdeněk Šustr <sustr4@cesnet.cz>
Wed, 28 Jul 2010 14:17:15 +0000 (14:17 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Wed, 28 Jul 2010 14:17:15 +0000 (14:17 +0000)
org.glite.testsuites.ctb/LB/tests/test-common.sh

index fe64166..68c83e3 100644 (file)
@@ -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}'`