Skip to content

Commit 71372c1

Browse files
authored
Merge pull request #250 from code0-tech/handle-curl-failures
Add fail flag to curl
2 parents b900fb4 + 6a634da commit 71372c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support/helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function download_project() {
33
version=$(cat versions/$project)
44
echo "Downloading $project at $version"
55
mkdir -p projects
6-
curl --output projects/$project.tar.gz -L "https://github.com/code0-tech/$project/archive/$version.tar.gz" || return 10
6+
curl --output projects/$project.tar.gz --fail-with-body -L "https://github.com/code0-tech/$project/archive/$version.tar.gz" || return 10
77
tar -xzf projects/$project.tar.gz -C projects || return 10
88
rm projects/$project.tar.gz || return 1
99
mv projects/$project-* projects/$project || return 1

0 commit comments

Comments
 (0)