aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-03-19 15:32:03 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-03-19 15:32:03 -0500
commit021878457259f9afb076a873dd20e440eddbb0c9 (patch)
tree5af75edfbc53e1541c905c8ea9ec495558cee951
parente51dc67515983b355153f19eb2b8fcf83e663f2c (diff)
Assign retval after spinner returns exit code.
-rw-r--r--packageinstall.sh1
1 files changed, 1 insertions, 0 deletions
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