From b55e66b8c135729d3aa12390848e64532c423b83 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 30 Jan 2011 19:15:50 -0600 Subject: Move output functions to top of functions file This makes a bit more organizational sense to keep these first before we dive into the more complicated functions. Signed-off-by: Dan McGee --- functions | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/functions b/functions index ef066ba..584fe0d 100644 --- a/functions +++ b/functions @@ -1,3 +1,6 @@ +msg () { [ "${QUIET}" = "n" ] && echo $@; } +err () { echo "ERROR: $@" >&2; } +die () { echo "FATAL: $@" >&2; cleanup; exit 1; } auto_modules () { @@ -38,10 +41,6 @@ checked_modules () fi } -msg () { [ "${QUIET}" = "n" ] && echo $@; } -err () { echo "ERROR: $@" >&2; } -die () { echo "FATAL: $@" >&2; cleanup; exit 1; } - add_full_dir () { if [ -n "${1}" -a -d "${1}" ]; then -- cgit v1.2.3-24-g4f1b