summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-31 02:15:50 +0100
committerThomas Bächler <thomas@archlinux.org>2011-01-31 21:44:10 +0100
commitb55e66b8c135729d3aa12390848e64532c423b83 (patch)
treedc7303334fe094c0a07bbe17288f37e1af0e140a /functions
parentc51341553212541cac8f584df27efdfb24c3374b (diff)
downloadmkinitcpio-b55e66b8c135729d3aa12390848e64532c423b83.tar.gz
mkinitcpio-b55e66b8c135729d3aa12390848e64532c423b83.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions7
1 files 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