From 3c381d35f551844a7452d77c566a6f88108eb385 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 6 Jun 2011 19:56:23 -0400 Subject: overhaul output, introducing color Output style and coloring is borrowed from makepkg with minor adjustments. Most instances where we encounter fatal errors are replaced with a 'die' function to wrap this up neatly. In addition, we introduce the -n flag, for no-color. As a side effect, we need to source the functions file earlier so we have the output functions available earlier. Signed-off-by: Dave Reisner --- install/autodetect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'install') diff --git a/install/autodetect b/install/autodetect index 118c9a5..b195913 100644 --- a/install/autodetect +++ b/install/autodetect @@ -21,7 +21,7 @@ build() if [ ${UID} -eq 0 -o "$(groups | grep disk)" != "" ]; then fss=$(findfs | sort | uniq) if [ -z "${fss}" ]; then - err "Root file system type detection failed." + error "Root file system type detection failed." autodetect_fs_detection_failed=1 fi for fs in ${fss}; do @@ -49,7 +49,7 @@ build() else autodetect_fs_detection_failed=1 autodetect_raid_detection_failed=1 - err "User does not have proper permissions to read superblocks, raid and filesystem modules are not detected" + error "User does not have proper permissions to read superblocks, raid and filesystem modules are not detected" fi for m in ${AUTODETECT}; do -- cgit v1.2.3-24-g4f1b