Skip to content

Commit

Permalink
Update to batect 0.58.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskorn committed Aug 30, 2020
1 parent 0825632 commit 6fbd643
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 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.1"
CHECKSUM="${BATECT_DOWNLOAD_CHECKSUM:-6c85bdcbfe4f211fde3e29b7fee1eb0eeb523827593da3f4a05e78b2611450d7}"
VERSION="0.58.3"
CHECKSUM="${BATECT_DOWNLOAD_CHECKSUM:-3bc2771f5b5b4d83c54fadc94dc0666714a7a4ba3c8144d02ffa5dc72f816670}"
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
10 changes: 7 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.1"
set "version=0.58.3"

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

^

$Version='0.58.1'^
$Version='0.58.3'^

^

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 '6c85bdcbfe4f211fde3e29b7fee1eb0eeb523827593da3f4a05e78b2611450d7'^
$ExpectedChecksum = getValueOrDefault $env:BATECT_DOWNLOAD_CHECKSUM '3bc2771f5b5b4d83c54fadc94dc0666714a7a4ba3c8144d02ffa5dc72f816670'^

^

Expand Down Expand Up @@ -402,6 +402,10 @@ rem If we modify the script while it is still running (eg. because we're updatin
rem because it continues execution from the next byte (which was previously the end of the line).
rem By explicitly exiting on the same line as starting the application, we avoid these issues as cmd.exe has already read the entire
rem line before we start the application and therefore will always exit.

rem Why do we set PSModulePath?
rem See issue #627
set "PSModulePath="
powershell.exe -ExecutionPolicy Bypass -NoLogo -NoProfile -File "%ps1Path%" %* && exit /b 0 || exit /b !ERRORLEVEL!

rem What's this for?
Expand Down

0 comments on commit 6fbd643

Please sign in to comment.