Skip to content

Commit

Permalink
Act on review comment: all _curl calls are GETs for now
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Oct 25, 2023
1 parent f7fcb26 commit 8b1c6ab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kerl
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ get_tarball_releases() {
return 0
else
rm -f "$tmp"
error "_curl $ERLANG_DOWNLOAD_URL returned $http_code!"
error "$ERLANG_DOWNLOAD_URL returned $http_code!"
return 1
fi
}
Expand All @@ -554,7 +554,7 @@ update_checksum_file() {
notice "Getting checksum file from erlang.org..."
http_code=$(_curl "$KERL_DOWNLOAD_DIR"/MD5 "$ERLANG_DOWNLOAD_URL"/MD5)
if [ 200 != "$http_code" ]; then
error "_curl $ERLANG_DOWNLOAD_URL/MD5 returned $http_code!"
error "$ERLANG_DOWNLOAD_URL/MD5 returned $http_code!"
return 1
fi
fi
Expand Down Expand Up @@ -2187,7 +2187,7 @@ github_download() {
notice "Downloading (from GitHub) Erlang/OTP $1 to $KERL_DOWNLOAD_DIR..."
http_code=$(_curl "$tarball_file" "$tarball_url")
if [ 200 != "$http_code" ]; then
error "_curl $tarball_url returned $http_code!"
error "$tarball_url returned $http_code!"
return 1
fi
else
Expand All @@ -2198,7 +2198,7 @@ github_download() {
rm -rf "$tarball_file"
http_code=$(_curl "$tarball_file" "$tarball_url")
if [ 200 != "$http_code" ]; then
error "_curl $tarball_url returned $http_code!"
error "$tarball_url returned $http_code!"
return 1
fi
fi
Expand All @@ -2210,7 +2210,7 @@ tarball_download() {
notice "Downloading tarball $1 to $KERL_DOWNLOAD_DIR..."
http_code=$(_curl "$KERL_DOWNLOAD_DIR/$1" "$ERLANG_DOWNLOAD_URL/$1")
if [ 200 != "$http_code" ]; then
error "_curl $ERLANG_DOWNLOAD_URL/$1 returned $http_code!"
error "$ERLANG_DOWNLOAD_URL/$1 returned $http_code!"
return 1
fi
if ! update_checksum_file; then
Expand All @@ -2234,7 +2234,7 @@ upgrade_kerl() {
install_folder=$1
http_code=$(_curl "$install_folder/kerl" "$KERL_GIT_BASE"/kerl)
if [ 200 != "$http_code" ]; then
error "_curl $KERL_GIT_BASE/kerl returned $http_code!"
error "$KERL_GIT_BASE/kerl returned $http_code!"
return 1
fi
chmod +x "$install_folder/kerl"
Expand Down

0 comments on commit 8b1c6ab

Please sign in to comment.