X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fcore%2Ffunctions.sh;h=0d1be4af851bc38239a1c9c672f6ecfe7b43893d;hb=082d1ce6c2d109912119a581086f36c9eaa368b6;hp=21d9d04716beb91107c1993d33cced0bf29203de;hpb=43d671a278a6f7dc0d831541d0992bc00eb23ee8;p=feisty_meow.git diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 21d9d047..0d1be4af 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -551,6 +551,29 @@ 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 + 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