aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Meier <maekke@gentoo.org>2014-07-17 20:06:28 +0200
committerMarkus Meier <maekke@gentoo.org>2014-07-17 20:06:28 +0200
commit98b9ccb2166a1278d5d211272626cb12326ab677 (patch)
tree9eeff6b0f11024c52fb72f6d980f7f5a68db86b7 /scripts
parentadd media-gfx/luminance-hdr from gentoo-x86 (diff)
downloadmaekke-98b9ccb2166a1278d5d211272626cb12326ab677.tar.gz
maekke-98b9ccb2166a1278d5d211272626cb12326ab677.tar.bz2
maekke-98b9ccb2166a1278d5d211272626cb12326ab677.zip
show wget exit status
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rdep5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/rdep b/scripts/rdep
index 6157d8c..b2f9014 100755
--- a/scripts/rdep
+++ b/scripts/rdep
@@ -43,8 +43,9 @@ fi
tmp="$(mktemp)"
wget -o /dev/null -O "${tmp}" "${BASE_URL}/${pkg}"
-if [[ $? -ne 0 ]] ; then
- echo "failed to fetch reverse deps"
+res=$?
+if [[ ${res} -ne 0 ]] ; then
+ echo "failed to fetch reverse deps (wget returned ${res})"
rm "${tmp}"
exit 1
fi