divider length
This commit is contained in:
10
defaults.inc
10
defaults.inc
@@ -107,10 +107,14 @@ DISP_HEADER(){
|
||||
}
|
||||
|
||||
DIVIDER(){
|
||||
if [ -z ${2+x} ]; then clr='yellow'
|
||||
else clr=$2
|
||||
if [ -z ${2+x} ]; then local clr='yellow'
|
||||
else local clr=$2
|
||||
fi
|
||||
echo -e "${idsCL[${clr~}]}-----------------------------------------------------------------------${idsCL[Default]}"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user