diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 12:30:09 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 12:30:09 -0500 |
commit | d9dda5d2e5ebf96c8f8808d38b2ba9a116f0f0b0 (patch) | |
tree | ec45f0cdf1b95ba38d1c8d7f7c429eb60e5bab9d /packageinstall.sh | |
parent | 95902f2386e5d79fdcd688aa27737af896b3ac28 (diff) | |
parent | bc2ffe5e6633538e5e34e1867b3a16c844c8b5fe (diff) |
Merge branch 'cleanup' into chapter7
Diffstat (limited to 'packageinstall.sh')
-rw-r--r-- | packageinstall.sh | 10 |
1 files changed, 5 insertions, 5 deletions
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 |