|
@@ -222,7 +222,9 @@ fn_print_start_nl() {
|
|
|
# Separator is different for details.
|
|
# Separator is different for details.
|
|
|
fn_messages_separator() {
|
|
fn_messages_separator() {
|
|
|
if [ "${commandname}" == "DETAILS" ]; then
|
|
if [ "${commandname}" == "DETAILS" ]; then
|
|
|
- printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
|
|
|
|
|
|
|
+ # Fall back to 80 columns when there is no terminal (e.g. cron or Docker); bash 5.3+ rejects an empty printf width.
|
|
|
|
|
+ local columns="${COLUMNS:-$(tput cols 2> /dev/null)}"
|
|
|
|
|
+ printf '%*s\n' "${columns:-80}" '' | tr ' ' =
|
|
|
else
|
|
else
|
|
|
echo -e "${bold}=================================${default}"
|
|
echo -e "${bold}=================================${default}"
|
|
|
fn_sleep_time
|
|
fn_sleep_time
|