aboutsummaryrefslogtreecommitdiffstats
path: root/packageinstall.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packageinstall.sh')
-rw-r--r--packageinstall.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/packageinstall.sh b/packageinstall.sh
index 848e4d8..bb6d230 100644
--- a/packageinstall.sh
+++ b/packageinstall.sh
@@ -36,13 +36,13 @@ else
if [ "$retval" -ne 0 ]; then
echo -e "\n${GRN}Compiling ${YLW}${PACKAGE} ${RED}FAILED!${RST}"
popd > /dev/null
- exit 1
+ return $retval
+ else
+ echo -e "\n${GRN}Done Compiling ${YLW}${PACKAGE}${RST}"
+ touch ${LFS}/sources/chapter${CHAPTER}/${PACKAGE}
+ rm -rf ${LFS}/sources/${DIRNAME}
fi
- echo -e "\n${GRN}Done Compiling ${YLW}${PACKAGE}${RST}"
- touch ${LFS}/sources/chapter${CHAPTER}/${PACKAGE}
- rm -rf ${LFS}/sources/${DIRNAME}
-
popd > /dev/null
done