Minor cosmetic change.

This commit is contained in:
Pedro Algarvio 2013-01-25 20:26:58 +00:00
parent 2a88743c86
commit 813ef8800b

View file

@ -23,6 +23,7 @@ COLUMNS=$(tput cols || 80)
if [ $(whoami) != "root" ] ; then if [ $(whoami) != "root" ] ; then
title="You need to run this script as root." title="You need to run this script as root."
line="$(printf "%${COLUMNS}s" "")" line="$(printf "%${COLUMNS}s" "")"
printf "\033[1;31m%s\033[0m\n" "${line// /*}"
printf "\033[1;31m%*s\033[0m\n" $(((${#title}+$COLUMNS)/2)) "$title" printf "\033[1;31m%*s\033[0m\n" $(((${#title}+$COLUMNS)/2)) "$title"
printf "\033[1;31m%s\033[0m\n" "${line// /*}" printf "\033[1;31m%s\033[0m\n" "${line// /*}"
exit 1 exit 1