anchor.diff:      REM Clone from the origin repo
       SET REPOURL=%UPSTREAMURL%/%REPONAME%.git
       git clone !REPOURL! --quiet
  -    IF %ERRORLEVEL% NEQ 0 (
  +    IF ERRORLEVEL 1 (
           ECHO %REPONAME%: Git clone failed.
           GOTO exitOnError
       )
  
positive.code: SET PREBUILTDIR=prebuilt
  MKDIR %PREBUILTDIR% >NUL 2>&1
  powershell -nologo -noprofile -command "try { (New-Object Net.WebClient).DownloadFile('%DLURL%', '%PREBUILTDIR%\temp.zip') } catch {exit 1}"
  IF NOT %ERRORLEVEL% == 0 ( ECHO Failed downloading %DLURL% & EXIT /B 1 )
  powershell -nologo -noprofile -command "Add-Type -AssemblyName System.IO.Compression.FileSystem; $zip=[System.IO.Compression.ZipFile]::OpenRead('%PREBUILTDIR%\temp.zip'); foreach ($item in $zip.Entries) { try {$file=(Join-Path -Path .\%PREBUILTDIR% -ChildPath $item.FullName); $null=[System.IO.Directory]::CreateDirectory((Split-Path -Path $file)); [System.IO.Compression.ZipFileExtensions]::ExtractToFile($item,$file,$true)} catch {exit 1} }"
  IF NOT %ERRORLEVEL% == 0 ( ECHO Failed extracting downloaded archive & EXIT /B 1 )
  DEL /F /Q %PREBUILTDIR%\\temp.zip
  ECHO.
  EXIT /B %ERRORLEVEL%
  
  :exitOnError
  cd %CURRDIR%
  SET ERROR=1
  
  :exit
  
negative.code: ) ELSE (
      powershell -nologo -noprofile -command "try { Invoke-RestMethod -Uri %UPSTREAMAPIURL%/%REPONAME%/releases/latest -Headers @{'Authorization' = 'token %GITHUBTOKEN%'} > latest.json } catch {exit 1}"
  )
  IF ERRORLEVEL 1 ( ECHO Failed getting latest %REPONAME% release & EXIT /B 1 )
  REM Get tag for latest release
  FOR /F "tokens=* USEBACKQ" %%F IN (`TYPE latest.json ^| FINDSTR /B "tag_name"`) DO SET TAG=%%F
  FOR /F "tokens=2 delims=: " %%F in ("%TAG%") DO SET TAG=%%F
  