Fix unbound variable in the tests script.

This commit is contained in:
Pedro Algarvio 2013-01-25 20:25:06 +00:00
parent 3369cf8b3d
commit 6e2ec45800

View file

@ -17,6 +17,8 @@
set -o nounset # Treat unset variables as an error
# Find out the available columns on our tty
COLUMNS=$(tput cols || 80)
if [ $(whoami) != "root" ] ; then
title="You need to run this script as root."
@ -30,8 +32,6 @@ fi
# Change to the scripts parent directory
cd $(dirname $0)
# Find out the available columns on our tty
COLUMNS=$(tput cols || 80)
title_echo() {