From bc2ffe5e6633538e5e34e1867b3a16c844c8b5fe Mon Sep 17 00:00:00 2001 From: William Harrington Date: Fri, 2 Apr 2021 12:29:28 -0500 Subject: Format FAIL and OK messages with intense color. Reset colors before new line. Try to keep a sane style in the scripts. --- packageinstall.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packageinstall.sh') diff --git a/packageinstall.sh b/packageinstall.sh index 43fd4eb..1374b21 100644 --- a/packageinstall.sh +++ b/packageinstall.sh @@ -21,26 +21,26 @@ else spinner "$pid" "${SPINNER}" retval=$? if [[ "$retval" -ne 0 ]]; then - printf "%b" "${GRN}Extraction ${RED}FAILED!${RST}\n" + printf "%b" "${GRN}Extraction ${IRED}FAILED!${RST}\n" return $retval else - printf "%b" "${GRN}OK${RST}\n" + printf "%b" "${IGRN}OK${RST}\n" fi pushd "${DIRNAME}" > /dev/null || return 1 - printf "%b" "${CYN}Compiling ${YLW}${PACKAGE}${RST}... " + printf "%b" " ${CYN}Compiling ${YLW}${PACKAGE}${RST}... " mkdir -p "${LFS}/sources/log/chapter${CHAPTER}/" source "${LFS}/sources/chapter${CHAPTER}/${PACKAGE}.sh" 2>&1 > "${LFS}/sources/log/chapter${CHAPTER}/${PACKAGE}.log" 2>&1 & pid=$! spinner "$pid" "${SPINNER}" retval=$? if [[ "$retval" -ne 0 ]]; then - printf "%b" "${RED}FAILED!${RST}\n" + printf "%b" "${IRED}FAILED!${RST}\n" popd > /dev/null || return 1 return $retval else - printf "%b" "${GRN}OK${RST}\n" + printf "%b" "${IGRN}OK${RST}\n" touch "${LFS}"/sources/chapter"${CHAPTER}"/"${PACKAGE}" rm -rf "${LFS}"/sources/"${DIRNAME}" fi -- cgit v1.2.3-54-g00ecf