change_api_key.sh: move output of Headline after checking if running on a terminal.

This commit is contained in:
Christoph 2018-04-30 03:45:04 +02:00
parent 0231affd2c
commit 49b40c95d7

View File

@ -184,18 +184,6 @@ trap clean_up SIGHUP SIGINT SIGTERM
mkdir "$LOCK_DIR" mkdir "$LOCK_DIR"
# ----------
# - Headline
# ----------
if $terminal ; then
echo ""
echo -e "\033[1m----------\033[m"
echo -e "\033[32m\033[1mRunning script \033[m\033[1m$script_name\033[32m .. \033[m"
echo -e "\033[1m----------\033[m"
fi
# ---------- # ----------
# - Some checks .. # - Some checks ..
# ---------- # ----------
@ -227,6 +215,18 @@ fi
# - Begin Main Script # - Begin Main Script
# ========== # ==========
# ----------
# - Headline
# ----------
if $terminal ; then
echo ""
echo -e "\033[1m----------\033[m"
echo -e "\033[32m\033[1mRunning script \033[m\033[1m$script_name\033[32m .. \033[m"
echo -e "\033[1m----------\033[m"
fi
# ---------- # ----------
# Read Configurations from $conf_file # Read Configurations from $conf_file
# ---------- # ----------