From b50934ac69436d0d9b1979f01e9c66ef3bfb398b Mon Sep 17 00:00:00 2001 From: William Harrington Date: Fri, 19 Mar 2021 09:33:47 -0500 Subject: Add retval to download and report failure. --- lfs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lfs.sh b/lfs.sh index 99ef263..57665e2 100755 --- a/lfs.sh +++ b/lfs.sh @@ -51,6 +51,10 @@ cp -rf *.sh chapter* packages.csv "${LFS}/sources" cd "${LFS}/sources" source download.sh +retval=$? +if [ "$retval" -ne 0 ]; then + exit 1 +fi for package in binutils gcc linux-api-headers glibc libstdc++; do source packageinstall.sh 5 $package -- cgit v1.2.3-54-g00ecf