Skip to content

Commit

Permalink
Upgrade to batect 0.60.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskorn committed Oct 23, 2020
1 parent f4750de commit 1879c3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions batect
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# You should commit this file to version control alongside the rest of your project. It should not be installed globally.
# For more information, visit https://github.com/batect/batect.

VERSION="0.58.3"
CHECKSUM="${BATECT_DOWNLOAD_CHECKSUM:-3bc2771f5b5b4d83c54fadc94dc0666714a7a4ba3c8144d02ffa5dc72f816670}"
VERSION="0.60.1"
CHECKSUM="${BATECT_DOWNLOAD_CHECKSUM:-24b4af104830ecff3622b90e63d43ad518405921480ad960c0601edff41caea3}"
DOWNLOAD_URL_ROOT=${BATECT_DOWNLOAD_URL_ROOT:-"https://dl.bintray.com/batect/batect"}
DOWNLOAD_URL=${BATECT_DOWNLOAD_URL:-"$DOWNLOAD_URL_ROOT/$VERSION/bin/batect-$VERSION.jar"}
QUIET_DOWNLOAD=${BATECT_QUIET_DOWNLOAD:-false}
Expand Down Expand Up @@ -38,13 +38,13 @@
function download() {
checkForCurl

echo "Downloading batect version $VERSION from $DOWNLOAD_URL..."
mkdir -p "$VERSION_CACHE_DIR"
temp_file=$(mktemp)

if [[ $QUIET_DOWNLOAD == 'true' ]]; then
curl --fail --show-error --location --output "$temp_file" "$DOWNLOAD_URL"
curl --silent --fail --show-error --location --output "$temp_file" "$DOWNLOAD_URL"
else
echo "Downloading batect version $VERSION from $DOWNLOAD_URL..."
curl -# --fail --show-error --location --output "$temp_file" "$DOWNLOAD_URL"
fi

Expand Down
6 changes: 3 additions & 3 deletions batect.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rem For more information, visit https://github.com/batect/batect.

setlocal EnableDelayedExpansion

set "version=0.58.3"
set "version=0.60.1"

if "%BATECT_CACHE_DIR%" == "" (
set "BATECT_CACHE_DIR=%USERPROFILE%\.batect\cache"
Expand All @@ -22,7 +22,7 @@ $ErrorActionPreference = 'Stop'^

^

$Version='0.58.3'^
$Version='0.60.1'^

^

Expand All @@ -48,7 +48,7 @@ $UrlEncodedVersion = [Uri]::EscapeDataString($Version)^

$DownloadUrl = getValueOrDefault $env:BATECT_DOWNLOAD_URL "$DownloadUrlRoot/$UrlEncodedVersion/bin/batect-$UrlEncodedVersion.jar"^

$ExpectedChecksum = getValueOrDefault $env:BATECT_DOWNLOAD_CHECKSUM '3bc2771f5b5b4d83c54fadc94dc0666714a7a4ba3c8144d02ffa5dc72f816670'^
$ExpectedChecksum = getValueOrDefault $env:BATECT_DOWNLOAD_CHECKSUM '24b4af104830ecff3622b90e63d43ad518405921480ad960c0601edff41caea3'^

^

Expand Down

0 comments on commit 1879c3e

Please sign in to comment.