X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Ffunctions.sh;h=7edaa007b40b16e12b9075f5415a4a3a70bcc383;hb=609b705e54bef599d06151cbcb10da415918ff42;hp=21d9d04716beb91107c1993d33cced0bf29203de;hpb=43d671a278a6f7dc0d831541d0992bc00eb23ee8;p=feisty_meow.git diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 21d9d047..7edaa007 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -551,6 +551,30 @@ return 0 ############## + # just shows a separator line for an 80 column console, or uses the first + # parameter as the number of columns to expect. + function separator() + { + count=$1; shift + if [ -z "$count" ]; then + count=79 + fi + echo + local i + for ((i=0; i < $count - 1; i++)); do + echo -n "=" + done + echo + echo + } + # alias for separator. + function sep() + { + separator $* + } + + ############## + function function_sentinel() { return 0; } if [ ! -z "$SHELL_DEBUG" ]; then echo "feisty meow function definitions done."; fi