create_database.sh: a really small changes on scipt output.

This commit is contained in:
Christoph 2025-03-11 10:51:09 +01:00
parent 014cf46b74
commit 7b97a5d6ff

View File

@ -84,11 +84,11 @@ fatal(){
if $terminal ; then if $terminal ; then
if [[ -n "$*" ]] ; then if [[ -n "$*" ]] ; then
echo -e " [ \033[31m\033[1mFatal\033[m ]: $*" echo -e " [ \033[31m\033[1mFatal\033[m ]: $*"
echo ""
echo -e " \033[31m\033[1mScript will be interrupted.\033[m"
else else
echo " \033[31m\033[1mFatal error\033[m:" echo -e " \033[31m\033[1mFatal error\033[m: \033[1mScript will be interrupted.\033[m"
fi fi
echo ""
echo -e " \033[31m\033[1mScript will be interrupted.\033[m\033[m"
else else
if [[ -n "$*" ]] ; then if [[ -n "$*" ]] ; then
echo " [ Fatal ]: $*" echo " [ Fatal ]: $*"
@ -156,6 +156,13 @@ echo_skipped() {
fi fi
} }
blank_line() {
if $terminal ; then
echo ""
fi
}
is_number() { is_number() {
return $(test ! -z "${1##*[!0-9]*}" > /dev/null 2>&1); return $(test ! -z "${1##*[!0-9]*}" > /dev/null 2>&1);
@ -276,6 +283,7 @@ if $NON_INTERACTIVE_MODE && [[ -z "$DATABASE_NAME" ]]; then
fi fi
blank_line
echononl " Get MySQL command.." echononl " Get MySQL command.."
mysql_command="$(which mysql)" mysql_command="$(which mysql)"
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then