aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2014-04-09 09:49:06 -0700
committerMark Ferrell <major@homeonderanged.org>2014-04-09 09:49:06 -0700
commitb734ab196ccf534f2ab8e50f26686c3eaa3a790d (patch)
treeb7c1e4cde4c07c14e49c6606f37fdc85d8ae7c98
parentb91e26c9061dadeb909e992d2afdb483c189c8fa (diff)
Capture exit status from build_fetch.
-rwxr-xr-xlibexec/build-make-fetch3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/build-make-fetch b/libexec/build-make-fetch
index b2031da..3e318bd 100755
--- a/libexec/build-make-fetch
+++ b/libexec/build-make-fetch
@@ -29,8 +29,9 @@ build_fetch()
if ! test -x "${BUILDER_LIBDIR}/build-fetch-${build_fetch_proto}"; then
die "do not know how to handle '${build_fetch_proto}'"
fi
- "build-fetch-${build_fetch_proto}" "${1}"
+ set -- "build-fetch-${build_fetch_proto}" "${1}"
unset build_fetch_proto
+ "$@"
}
build_fetch_file="$(build-url --archive "${1}")"