Skip to content

Commit

Permalink
be less verbose
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Schaller <ivan@schaller.sh>
  • Loading branch information
olofvndrhr committed Sep 1, 2023
1 parent 05272e8 commit 93771e1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,15 @@ function download_release() {

mkdir -p "${download_path}"

echo "* Platform: ${platform}"
echo "* Downloading ${TOOL_NAME}, release ${version}..."
echo "* Downloading ${TOOL_NAME} ${version} from ${url}"
if ! curl "${curl_opts[@]}" -o "${download_path}/${release_tar}" -C - "${url}"; then
fail "Could not download ${url}"
fi
echo "> Download successful"

echo "* Extracting ${release_tar}..."
if ! tar -xzf "${download_path}/${release_tar}" -C "${download_path}" "${TOOL_NAME}"; then
fail "Could not extract ${release_tar}"
fi
rm -f "${download_path}/${release_tar}"
echo "> Extraction successful"
}

function install_version() {
Expand All @@ -113,5 +109,5 @@ function install_version() {
fail "Error with command: '${TOOL_NAME} ${TOOL_TEST}'"
fi

echo "> ${TOOL_NAME} ${version} installation was successful!"
echo "${TOOL_NAME} ${version} installation was successful!"
}

0 comments on commit 93771e1

Please sign in to comment.