Skip to content

Commit

Permalink
Act on local test results: don't output ".:" when outputting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Oct 22, 2023
1 parent 785f984 commit ff6bd1b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions kerl
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ get_git_releases() {
return 0
else
rm -f "$tmp"
error "failed: git ls-remote --tags --refs $OTP_GITHUB_URL returned $ret!"
error "git ls-remote --tags --refs $OTP_GITHUB_URL returned $ret!"
return 1
fi
}
Expand Down Expand Up @@ -542,7 +542,7 @@ get_tarball_releases() {
return 0
else
rm -f "$tmp"
error "failed: _curl $ERLANG_DOWNLOAD_URL returned $http_code!"
error "_curl $ERLANG_DOWNLOAD_URL returned $http_code!"
return 1
fi
}
Expand All @@ -552,7 +552,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 "failed: _curl $ERLANG_DOWNLOAD_URL/MD5 returned $http_code!"
error "_curl $ERLANG_DOWNLOAD_URL/MD5 returned $http_code!"
return 1
fi
fi
Expand Down Expand Up @@ -2185,7 +2185,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 "failed: _curl $tarball_url returned $http_code!"
error "_curl $tarball_url returned $http_code!"
return 1
fi
else
Expand All @@ -2196,7 +2196,7 @@ github_download() {
rm -rf "$tarball_file"
http_code=$(_curl "$tarball_file" "$tarball_url")
if [ 200 != "$http_code" ]; then
error "failed: _curl $tarball_url returned $http_code!"
error "_curl $tarball_url returned $http_code!"
return 1
fi
fi
Expand All @@ -2208,7 +2208,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 "failed: _curl $ERLANG_DOWNLOAD_URL/$1 returned $http_code!"
error "_curl $ERLANG_DOWNLOAD_URL/$1 returned $http_code!"
return 1
fi
if ! update_checksum_file; then
Expand All @@ -2232,7 +2232,7 @@ upgrade_kerl() {
install_folder=$1
http_code=$(_curl "$install_folder/kerl" "$KERL_GIT_BASE"/kerl)
if [ 200 != "$http_code" ]; then
error "failed: _curl $KERL_GIT_BASE/kerl returned $http_code!"
error "_curl $KERL_GIT_BASE/kerl returned $http_code!"
return 1
fi
chmod +x "$install_folder/kerl"
Expand Down Expand Up @@ -2624,7 +2624,7 @@ emit-activate)
esac
;;
*)
error "unknown command: '$1'."
error "unknown command '$1'."
k_usage
;;
esac

0 comments on commit ff6bd1b

Please sign in to comment.