From c6278dfbe91909a2f9d8bee841790fd86ad694b0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 30 Mar 2019 16:42:24 -0500 Subject: [PATCH] Update default.inc --- default.inc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/default.inc b/default.inc index c9415e7..dd09f12 100755 --- a/default.inc +++ b/default.inc @@ -133,6 +133,19 @@ SHOW_TIME() { echo ${t} } +DIVIDER(){ + if [ -z ${2+x} ]; then local clr='yellow' + else local clr=$2 + fi + if [ -z ${3+x} ]; then local length=70 + else local length=$3 + fi + local c=0; local dashes=''; until [ $c = ${length} ]; do local dashes="${dashes}-"; local c=`expr $c + 1`; done + echo -e "${idsCL[${clr~}]}${dashes}${idsCL[Default]}" + if [ "$1" = true ]; then + echo "" + fi +} declare -A abet