mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Minor cosmetic change.
This commit is contained in:
parent
2a88743c86
commit
813ef8800b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue