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:         )
      )
  )
  cd %CURRDIR% >NUL
  GOTO exit
  
  REM Function to clone or update a repo
  
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
  