test-bot: simplify the upload logic
test-bot: simplify the upload logic

If the bottle is already published, let's fail directly.
Also silent the curl output.

Closes Homebrew/homebrew#40295.

Signed-off-by: Xu Cheng <9a05244150b861e40c78843b801eed71bca54eac@me.com>

amar-laksh/brew_sudo,gregory-nisbet/brew,mistydemeo/homebrew,sjackman/homebrew,Linuxbrew/brew,MikeMcQuaid/brew,maxim-belkin/brew,konqui/brew,reitermarkus/brew,JCount/brew,staticfloat/brew,MikeMcQuaid/brew,pseudocody/brew,nandub/brew,gordonmcshane/homebrew,ilovezfs/brew,Homebrew/brew,zmwangx/brew,sjackman/homebrew,DomT4/brew,vitorgalvao/brew,alyssais/brew,reelsense/brew,claui/brew,JCount/brew,toonetown/homebrew,alyssais/brew,staticfloat/brew,muellermartin/dist,rwhogg/brew,Linuxbrew/brew,DomT4/brew,claui/brew,jmsundar/brew,DomT4/brew,nandub/brew,Homebrew/brew,mahori/brew,aw1621107/brew,gordonmcshane/homebrew,AnastasiaSulyagina/brew,sjackman/homebrew,JCount/brew,muellermartin/dist,reitermarkus/brew,amar-laksh/brew_sudo,rwhogg/brew,vitorgalvao/brew,alyssais/brew,mahori/brew,gregory-nisbet/brew,AnastasiaSulyagina/brew,mgrimes/brew,palxex/brew,zmwangx/brew,bfontaine/brew,tonyg/homebrew,konqui/brew,Linuxbrew/brew,maxim-belkin/brew,jmsundar/brew,hanxue/linuxbrew,claui/brew,mgrimes/brew,gordonmcshane/homebrew,mistydemeo/homebrew,reitermarkus/brew,toonetown/homebrew,DomT4/brew,bfontaine/brew,tonyg/homebrew,maxim-belkin/brew,konqui/brew,mahori/brew,jmsundar/brew,staticfloat/brew,palxex/brew,hanxue/linuxbrew,amar-laksh/brew_sudo,nandub/brew,zmwangx/brew,sjackman/homebrew,Homebrew/brew,aw1621107/brew,mistydemeo/homebrew,mgrimes/brew,konqui/brew,Homebrew/brew,rwhogg/brew,reelsense/brew,gregory-nisbet/brew,pseudocody/brew,MikeMcQuaid/brew,EricFromCanada/brew,toonetown/homebrew,tonyg/homebrew,EricFromCanada/brew,muellermartin/dist,ilovezfs/brew,MikeMcQuaid/brew,nandub/brew,palxex/brew,mahori/brew,hanxue/linuxbrew,claui/brew,vitorgalvao/brew,EricFromCanada/brew,vitorgalvao/brew,JCount/brew,EricFromCanada/brew,reelsense/brew,reitermarkus/brew,AnastasiaSulyagina/brew,pseudocody/brew,ilovezfs/brew,Linuxbrew/brew,aw1621107/brew,bfontaine/brew