diff options
author | Markus Meier <maekke@gentoo.org> | 2014-07-17 20:06:28 +0200 |
---|---|---|
committer | Markus Meier <maekke@gentoo.org> | 2014-07-17 20:06:28 +0200 |
commit | 98b9ccb2166a1278d5d211272626cb12326ab677 (patch) | |
tree | 9eeff6b0f11024c52fb72f6d980f7f5a68db86b7 /scripts | |
parent | add media-gfx/luminance-hdr from gentoo-x86 (diff) | |
download | maekke-98b9ccb2166a1278d5d211272626cb12326ab677.tar.gz maekke-98b9ccb2166a1278d5d211272626cb12326ab677.tar.bz2 maekke-98b9ccb2166a1278d5d211272626cb12326ab677.zip |
show wget exit status
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/rdep | 5 |
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 |