Update default.inc
This commit is contained in:
14
default.inc
14
default.inc
@@ -180,17 +180,11 @@ DIVIDER(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
DIVIDER_C(){
|
DIVIDER_C(){
|
||||||
if [ -z ${2+x} ]; then local clr='yellow'
|
[ -z ${2+x} ] && clr='yellow' || clr=$2
|
||||||
else local clr=$2
|
[ -z ${3+x} ] && length=70 || length=$3
|
||||||
fi
|
c=0; dashes=''; until [ $c = ${length} ]; do dashes="${dashes}-"; c=`expr $c + 1`; done
|
||||||
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
|
|
||||||
[ "${clr}" == "." ] && echo ${dashes} || echo -e "${idsCL[${clr}]}${dashes}${idsCL[Default]}"
|
[ "${clr}" == "." ] && echo ${dashes} || echo -e "${idsCL[${clr}]}${dashes}${idsCL[Default]}"
|
||||||
if [ "$1" = true ]; then
|
[ "$1" = true ] && echo
|
||||||
echo ""
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
service_exists() {
|
service_exists() {
|
||||||
|
|||||||
Reference in New Issue
Block a user