From 021878457259f9afb076a873dd20e440eddbb0c9 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Fri, 19 Mar 2021 15:32:03 -0500 Subject: Assign retval after spinner returns exit code. --- packageinstall.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/packageinstall.sh b/packageinstall.sh index 3fbe193..ce5a42b 100644 --- a/packageinstall.sh +++ b/packageinstall.sh @@ -34,6 +34,7 @@ else mkdir -p "../log/chapter${CHAPTER}/" source "../chapter${CHAPTER}/${PACKAGE}.sh" 2>&1 > "../log/chapter${CHAPTER}/${PACKAGE}.log" 2>&1 & pid=$! spinner "$pid" + retval=$? if [ "$retval" -ne 0 ]; then echo -e "\n${GRN}Compiling ${YLW}${PACKAGE} ${RED}FAILED!${RST}" popd > /dev/null -- cgit v1.2.3-54-g00ecf