10000 Merge pull request #1 from matthew-brett/better-error · MacPython/gfortran-install@67e8b69 · GitHub
[go: up one dir, main page]

Skip to content

Commit 67e8b69

Browse files
authored
Merge pull request #1 from matthew-brett/better-error
Better error when file was empty
2 parents a2a1a0d + 0888467 commit 67e8b69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gfortran_utils.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ function get_gf_lib_for_suf {
8282
local fname="$prefix-${plat_tag}${suffix}.tar.gz"
8383
local out_fname="${ARCHIVE_SDIR}/$fname"
8484
if [ ! -e "$out_fname" ]; then
85-
curl -L "${GF_LIB_URL}/$fname" > $out_fname || (echo "Fetch failed"; exit 1)
85+
curl -L "${GF_LIB_URL}/$fname" > $out_fname || (echo "Fetch of $out_fname failed"; exit 1)
8686
fi
87+
[ -s $out_fname ] || (echo "$out_fname is empty"; exit 24)
8788
echo "$out_fname"
8889
}
8990

0 commit comments

Comments
 (0)
0