downloads: fix undefined local variable
downloads: fix undefined local variable

https://github.com/Homebrew/homebrew/commit/2950e5ab6ee76f35c7015cfa2d07bee6ddb1170e#commitcomment-13824130

treyharris/homebrew,windoze/homebrew,reelsense/homebrew,elyscape/homebrew,cprecioso/homebrew,mactkg/homebrew,DoomHammer/linuxbrew,arnested/homebrew,benjaminfrank/homebrew,ehamberg/homebrew,pcottle/homebrew,mobileoverlord/homebrew-1,dunn/homebrew,princeofdarkness76/homebrew,scpeters/homebrew,hakamadare/homebrew,adamliter/homebrew,reelsense/linuxbrew,pdxdan/homebrew,lrascao/homebrew,nandub/homebrew,retrography/homebrew,kashif/homebrew,yangj1e/homebrew,blogabe/homebrew,amarshall/homebrew,slyphon/homebrew,elgertam/homebrew,danabrand/linuxbrew,zhipeng-jia/homebrew,arnested/homebrew,jab/homebrew,drewwells/homebrew,zeha/homebrew,dkotvan/homebrew,marcusandre/homebrew,a-b/homebrew,gvangool/homebrew,frickler01/homebrew,dongcarl/homebrew,cosmo0920/homebrew,aaronwolen/homebrew,ebouaziz/linuxbrew,pcottle/homebrew,bchatard/homebrew,cscetbon/homebrew,ralic/homebrew,quantumsteve/homebrew,ndimiduk/homebrew,apjanke/homebrew,jeremiahyan/homebrew,Cutehacks/homebrew,booi/homebrew,brotbert/homebrew,johanhammar/homebrew,vigo/homebrew,max-horvath/homebrew,sferik/homebrew,OJFord/homebrew,a-b/homebrew,youtux/homebrew,marcwebbie/homebrew,hanxue/homebrew,thinker0/homebrew,colindean/homebrew,SuperNEMO-DBD/cadfaelbrew,deorth/homebrew,SuperNEMO-DBD/cadfaelbrew,davidcelis/homebrew,afh/homebrew,coldeasy/homebrew,teslamint/homebrew,ehamberg/homebrew,mommel/homebrew,Linuxbrew/linuxbrew,davydden/linuxbrew,hongkongkiwi/homebrew,lvicentesanchez/homebrew,cscetbon/homebrew,alebcay/homebrew,frodeaa/homebrew,reelsense/linuxbrew,redpen-cc/homebrew,heinzf/homebrew,Homebrew/linuxbrew,dolfly/homebrew,tseven/homebrew,grepnull/homebrew,thinker0/homebrew,ExtremeMan/homebrew,ybott/homebrew,codeout/homebrew,scpeters/homebrew,jab/homebrew,petere/homebrew,xyproto/homebrew,emcrisostomo/homebrew,Chilledheart/homebrew,DoomHammer/linuxbrew,benjaminfrank/homebrew,LinusU/homebrew,ybott/homebrew,brunchboy/homebrew,kevinastone/homebrew,SteveClement/homebrew,Asuranceturix/homebrew,amjith/homebrew,dolfly/homebrew,arg/homebrew,hyuni/homebrew,joshua-rutherford/homebrew,ericfischer/homebrew,michaKFromParis/homebrew-sparks,kashif/homebrew,kodabb/homebrew,Red54/homebrew,reelsense/homebrew,alex/homebrew,pdxdan/homebrew,ablyler/homebrew,afb/homebrew,sakra/homebrew,quantumsteve/homebrew,felixonmars/homebrew,Linuxbrew/linuxbrew,eighthave/homebrew,filcab/homebrew,mttrb/homebrew,cHoco/homebrew,menivaitsi/homebrew,Noctem/homebrew,alebcay/homebrew,dutchcoders/homebrew,pcottle/homebrew,benjaminfrank/homebrew,ento/homebrew,princeofdarkness76/homebrew,ralic/homebrew,amarshall/homebrew,drbenmorgan/linuxbrew,manphiz/homebrew,dongcarl/homebrew,marcusandre/homebrew,arg/homebrew,BrewTestBot/homebrew,gvangool/homebrew,razamatan/homebrew,ear/homebrew,galaxy001/homebrew,razamatan/homebrew,liamstask/homebrew,bukzor/linuxbrew,patrickmckenna/homebrew,jbeezley/homebrew,3van/homebrew,MartinDelille/homebrew,zeha/homebrew,AGWA-forks/homebrew,retrography/homebrew,iandennismiller/homebrew,LonnyGomes/homebrew,codeout/homebrew,josa42/homebrew,johanhammar/homebrew,cchacin/homebrew,ilovezfs/homebrew,xcezx/homebrew,alebcay/homebrew,davydden/linuxbrew,windoze/homebrew,ge11232002/homebrew,jamer/homebrew,gnubila-france/linuxbrew,miketheman/homebrew,totalvoidness/homebrew,tsaeger/homebrew,optikfluffel/homebrew,keith/homebrew,nelstrom/homebrew,jiashuw/homebrew,eighthave/homebrew,changzuozhen/homebrew,3van/homebrew,zchee/homebrew,gvangool/homebrew,MartinDelille/homebrew,windoze/homebrew,martinklepsch/homebrew,elgertam/homebrew,frodeaa/homebrew,dongcarl/homebrew,skatsuta/homebrew,amarshall/homebrew,vigo/homebrew,liamstask/homebrew,dkotvan/homebrew,okuramasafumi/homebrew,eagleflo/homebrew,recruit-tech/homebrew,nandub/homebrew,TaylorMonacelli/homebrew,kevinastone/homebrew,dickeyxxx/homebrew,AGWA-forks/homebrew,afh/homebrew,gicmo/homebrew,ybott/homebrew,mkrapp/homebrew,miketheman/homebrew,lvicentesanchez/homebrew,influxdb/homebrew,xcezx/homebrew,kvs/homebrew,jmagnusson/homebrew,feelpp/homebrew,scorphus/homebrew,Habbie/homebrew,skinny-framework/homebrew,drewwells/homebrew,ybott/homebrew,gnawhleinad/homebrew,bigbes/homebrew,osimola/homebrew,dickeyxxx/homebrew,hanxue/homebrew,jedahan/homebrew,elyscape/homebrew,Homebrew/homebrew,getgauge/homebrew,quantumsteve/homebrew,marcwebbie/homebrew,arnested/homebrew,megahall/homebrew,haihappen/homebrew,afh/homebrew,dickeyxxx/homebrew,youtux/homebrew,kodabb/homebrew,sferik/homebrew,menivaitsi/homebrew,vladshablinsky/homebrew,nelstrom/homebrew,teslamint/homebrew,Chilledheart/homebrew,bchatard/homebrew,ento/homebrew,aaronwolen/homebrew,danieroux/homebrew,martinklepsch/homebrew,ge11232002/homebrew,michaKFromParis/homebrew-sparks,skinny-framework/homebrew,koraktor/homebrew,reelsense/homebrew,petere/homebrew,mttrb/homebrew,keith/homebrew,dutchcoders/homebrew,iandennismiller/homebrew,brotbert/homebrew,yangj1e/homebrew,alebcay/homebrew,grepnull/homebrew,reelsense/linuxbrew,tsaeger/homebrew,vihangm/homebrew,kenips/homebrew,vladshablinsky/homebrew,skinny-framework/homebrew,amarshall/homebrew,dgageot/homebrew,petere/homebrew,zchee/homebrew,Linuxbrew/linuxbrew,max-horvath/homebrew,davidcelis/homebrew,afb/homebrew,LonnyGomes/homebrew,drbenmorgan/linuxbrew,jconley/homebrew,iandennismiller/homebrew,moyogo/homebrew,MoSal/homebrew,utzig/homebrew,jeremiahyan/homebrew,eagleflo/homebrew,tstack/homebrew,ento/homebrew,ryanfb/homebrew,MoSal/homebrew,tseven/homebrew,kevinastone/homebrew,SteveClement/homebrew,michaKFromParis/homebrew-sparks,bchatard/homebrew,tschoonj/homebrew,emcrisostomo/homebrew,dplarson/homebrew,deorth/homebrew,aaronwolen/homebrew,filcab/homebrew,dgageot/homebrew,Noctem/homebrew,jeremiahyan/homebrew,ryanfb/homebrew,dplarson/homebrew,colindean/homebrew,redpen-cc/homebrew,decors/homebrew,dericed/homebrew,yangj1e/homebrew,getgauge/homebrew,retrography/homebrew,ndimiduk/homebrew,optikfluffel/homebrew,quantumsteve/homebrew,brunchboy/homebrew,xyproto/homebrew,haihappen/homebrew,influxdb/homebrew,tseven/homebrew,influxdata/homebrew,dalanmiller/homebrew,benjaminfrank/homebrew,nelstrom/homebrew,lmontrieux/homebrew,yazuuchi/homebrew,tutumcloud/homebrew,liamstask/homebrew,lvicentesanchez/linuxbrew,ebouaziz/linuxbrew,treyharris/homebrew,gicmo/homebrew,hanxue/homebrew,jbeezley/homebrew,Cutehacks/homebrew,kashif/homebrew,ilovezfs/homebrew,josa42/homebrew,feelpp/homebrew,recruit-tech/homebrew,galaxy001/homebrew,mommel/homebrew,esamson/homebrew,jiashuw/homebrew,megahall/homebrew,patrickmckenna/homebrew,saketkc/linuxbrew,cHoco/homebrew,jab/homebrew,SteveClement/homebrew,bigbes/homebrew,mactkg/homebrew,feelpp/homebrew,sjackman/linuxbrew,Angeldude/linuxbrew,kad/homebrew,arg/homebrew,okuramasafumi/homebrew,geoff-codes/homebrew,vihangm/homebrew,thinker0/homebrew,LinusU/homebrew,drewwells/homebrew,mmizutani/homebrew,ear/homebrew,mtigas/homebrew,treyharris/homebrew,SteveClement/homebrew,marcusandre/homebrew,feelpp/homebrew,bukzor/linuxbrew,brunchboy/homebrew,kashif/homebrew,ablyler/homebrew,apjanke/homebrew,polishgeeks/homebrew,changzuozhen/homebrew,DoomHammer/linuxbrew,danabrand/linuxbrew,lmontrieux/homebrew,base10/homebrew,knpwrs/homebrew,mkrapp/homebrew,mkrapp/homebrew,scorphus/homebrew,dutchcoders/homebrew,miketheman/homebrew,Asuranceturix/homebrew,AlekSi/homebrew,craig5/homebrew,base10/homebrew,polishgeeks/homebrew,SteveClement/homebrew,gnubila-france/linuxbrew,youtux/homebrew,pdxdan/homebrew,Gasol/homebrew,drbenmorgan/linuxbrew,frodeaa/homebrew,totalvoidness/homebrew,hakamadare/homebrew,hyuni/homebrew,ilovezfs/homebrew,sometimesfood/homebrew,jamer/homebrew,hanxue/homebrew,tschoonj/homebrew,dkotvan/homebrew,1zaman/homebrew,hakamadare/homebrew,ndimiduk/homebrew,yangj1e/homebrew,jsjohnst/homebrew,felixonmars/homebrew,tutumcloud/homebrew,base10/homebrew,moyogo/homebrew,changzuozhen/homebrew,LinusU/homebrew,utzig/homebrew,skinny-framework/homebrew,princeofdarkness76/homebrew,booi/homebrew,3van/homebrew,MoSal/homebrew,sjackman/linuxbrew,saketkc/linuxbrew,Angeldude/linuxbrew,lvicentesanchez/linuxbrew,vigo/homebrew,kenips/homebrew,blogabe/homebrew,gnubila-france/linuxbrew,skatsuta/homebrew,gnawhleinad/homebrew,TaylorMonacelli/homebrew,treyharris/homebrew,ExtremeMan/homebrew,decors/homebrew,princeofdarkness76/homebrew,danabrand/linuxbrew,1zaman/homebrew,ExtremeMan/homebrew,sakra/homebrew,thinker0/homebrew,dalanmiller/homebrew,afb/homebrew,grepnull/homebrew,cprecioso/homebrew,adamliter/homebrew,patrickmckenna/homebrew,koraktor/homebrew,craig5/homebrew,bitrise-io/homebrew,jab/homebrew,keith/homebrew,totalvoidness/homebrew,jarrettmeyer/homebrew,1zaman/homebrew,ehamberg/homebrew,gnawhleinad/homebrew,arnested/homebrew,changzuozhen/homebrew,sferik/homebrew,pdpi/homebrew,chadcatlett/homebrew,tjschuck/homebrew,OJFord/homebrew,DoomHammer/linuxbrew,jconley/homebrew,heinzf/homebrew,ericfischer/homebrew,mmizutani/homebrew,amjith/homebrew,mtigas/homebrew,xcezx/homebrew,drewwells/homebrew,pcottle/homebrew,mtigas/homebrew,Noctem/homebrew,ilovezfs/homebrew,base10/homebrew,ento/homebrew,getgauge/homebrew,patrickmckenna/homebrew,theeternalsw0rd/homebrew,mttrb/homebrew,sferik/homebrew,influxdata/homebrew,optikfluffel/homebrew,jeremiahyan/homebrew,cchacin/homebrew,royhodgman/homebrew,grepnull/homebrew,sjackman/linuxbrew,vladshablinsky/homebrew,tseven/homebrew,lrascao/homebrew,tschoonj/homebrew,kad/homebrew,dolfly/homebrew,galaxy001/homebrew,pdpi/homebrew,afb/homebrew,jsjohnst/homebrew,koraktor/homebrew,johanhammar/homebrew,bitrise-io/homebrew,gnawhleinad/homebrew,recruit-tech/homebrew,jsjohnst/homebrew,MoSal/homebrew,theeternalsw0rd/homebrew,menivaitsi/homebrew,AGWA-forks/homebrew,mactkg/homebrew,Gasol/homebrew,Noctem/homebrew,kodabb/homebrew,totalvoidness/homebrew,alex/homebrew,nandub/homebrew,moyogo/homebrew,royhodgman/homebrew,felixonmars/homebrew,BrewTestBot/homebrew,cprecioso/homebrew,TaylorMonacelli/homebrew,alex/homebrew,Homebrew/linuxbrew,LonnyGomes/homebrew,joshua-rutherford/homebrew,Homebrew/homebrew,jarrettmeyer/homebrew,skatsuta/homebrew,mommel/homebrew,AlekSi/homebrew,yazuuchi/homebrew,LonnyGomes/homebrew,davidcelis/homebrew,influxdata/homebrew,cosmo0920/homebrew,ear/homebrew,cprecioso/homebrew,ablyler/homebrew,amjith/homebrew,jmagnusson/homebrew,kodabb/homebrew,scpeters/homebrew,AlexejK/homebrew,filcab/homebrew,gicmo/homebrew,knpwrs/homebrew,ndimiduk/homebrew,emcrisostomo/homebrew,hongkongkiwi/homebrew,retrography/homebrew,TaylorMonacelli/homebrew,reelsense/linuxbrew,ebouaziz/linuxbrew,reelsense/homebrew,tutumcloud/homebrew,dericed/homebrew,gawbul/homebrew,SuperNEMO-DBD/cadfaelbrew,cHoco/homebrew,youtux/homebrew,slyphon/homebrew,teslamint/homebrew,getgauge/homebrew,Angeldude/linuxbrew,jedahan/homebrew,influxdb/homebrew,esamson/homebrew,osimola/homebrew,iostat/homebrew2,lvicentesanchez/linuxbrew,aaronwolen/homebrew,tstack/homebrew,zchee/homebrew,alex/homebrew,mmizutani/homebrew,blogabe/homebrew,kvs/homebrew,royhodgman/homebrew,johanhammar/homebrew,Asuranceturix/homebrew,decors/homebrew,iostat/homebrew2,saketkc/linuxbrew,davydden/linuxbrew,georgschoelly/homebrew,zhipeng-jia/homebrew,utzig/homebrew,iandennismiller/homebrew,dplarson/homebrew,deorth/homebrew,tjschuck/homebrew,teslamint/homebrew,cchacin/homebrew,skatsuta/homebrew,jarrettmeyer/homebrew,yumitsu/homebrew,jamer/homebrew,dalanmiller/homebrew,jmagnusson/homebrew,bukzor/linuxbrew,jamer/homebrew,vladshablinsky/homebrew,moyogo/homebrew,pdpi/homebrew,frodeaa/homebrew,jbeezley/homebrew,tjschuck/homebrew,sometimesfood/homebrew,iostat/homebrew2,redpen-cc/homebrew,afh/homebrew,zeha/homebrew,AlekSi/homebrew,booi/homebrew,AlekSi/homebrew,manphiz/homebrew,mtigas/homebrew,dericed/homebrew,joshfriend/homebrew,yumitsu/homebrew,scorphus/homebrew,polishgeeks/homebrew,a-b/homebrew,galaxy001/homebrew,Red54/homebrew,ExtremeMan/homebrew,max-horvath/homebrew,blogabe/homebrew,megahall/homebrew,tschoonj/homebrew,gicmo/homebrew,zchee/homebrew,AlexejK/homebrew,frickler01/homebrew,esamson/homebrew,MartinDelille/homebrew,brotbert/homebrew,kevinastone/homebrew,dalanmiller/homebrew,ericfischer/homebrew,coldeasy/homebrew,geoff-codes/homebrew,lvicentesanchez/homebrew,zeha/homebrew,optikfluffel/homebrew,theeternalsw0rd/homebrew,zhipeng-jia/homebrew,danabrand/linuxbrew,dickeyxxx/homebrew,Red54/homebrew,eighthave/homebrew,apjanke/homebrew,a-b/homebrew,emcrisostomo/homebrew,filcab/homebrew,BrewTestBot/homebrew,lmontrieux/homebrew,okuramasafumi/homebrew,Homebrew/linuxbrew,tutumcloud/homebrew,windoze/homebrew,dgageot/homebrew,miketheman/homebrew,Habbie/homebrew,dericed/homebrew,brotbert/homebrew,joshua-rutherford/homebrew,Homebrew/homebrew,frickler01/homebrew,sometimesfood/homebrew,bitrise-io/homebrew,3van/homebrew,muellermartin/homebrew,craig5/homebrew,danieroux/homebrew,marcwebbie/homebrew,AGWA-forks/homebrew,vihangm/homebrew,manphiz/homebrew,muellermartin/homebrew,haihappen/homebrew,hyuni/homebrew,ryanfb/homebrew,xyproto/homebrew,gnubila-france/linuxbrew,MartinDelille/homebrew,razamatan/homebrew,redpen-cc/homebrew,ralic/homebrew,geoff-codes/homebrew,gawbul/homebrew,haihappen/homebrew,nelstrom/homebrew,menivaitsi/homebrew,dolfly/homebrew,elyscape/homebrew,recruit-tech/homebrew,Gasol/homebrew,geoff-codes/homebrew,codeout/homebrew,muellermartin/homebrew,royhodgman/homebrew,yazuuchi/homebrew,jiashuw/homebrew,georgschoelly/homebrew,influxdb/homebrew,Homebrew/homebrew,dongcarl/homebrew,ryanfb/homebrew,xcezx/homebrew,Habbie/homebrew,davydden/linuxbrew,okuramasafumi/homebrew,Chilledheart/homebrew,mmizutani/homebrew,jiashuw/homebrew,chadcatlett/homebrew,sometimesfood/homebrew,dunn/homebrew,dgageot/homebrew,apjanke/homebrew,kvs/homebrew,sakra/homebrew,tsaeger/homebrew,joshfriend/homebrew,georgschoelly/homebrew,adamliter/homebrew,1zaman/homebrew,felixonmars/homebrew,gvangool/homebrew,nandub/homebrew,Cutehacks/homebrew,drbenmorgan/linuxbrew,knpwrs/homebrew,ericfischer/homebrew,iostat/homebrew2,LinusU/homebrew,hyuni/homebrew,zhipeng-jia/homebrew,theeternalsw0rd/homebrew,joshfriend/homebrew,liamstask/homebrew,bchatard/homebrew,arg/homebrew,osimola/homebrew,kenips/homebrew,keith/homebrew,cchacin/homebrew,adamliter/homebrew,mobileoverlord/homebrew-1,craig5/homebrew,hongkongkiwi/homebrew,elgertam/homebrew,lvicentesanchez/homebrew,hongkongkiwi/homebrew,pdxdan/homebrew,mobileoverlord/homebrew-1,danieroux/homebrew,tstack/homebrew,Chilledheart/homebrew,slyphon/homebrew,polishgeeks/homebrew,bigbes/homebrew,slyphon/homebrew,ralic/homebrew,colindean/homebrew,megahall/homebrew,scorphus/homebrew,pdpi/homebrew,coldeasy/homebrew,chadcatlett/homebrew,josa42/homebrew,mactkg/homebrew,kvs/homebrew,cosmo0920/homebrew,elyscape/homebrew,BrewTestBot/homebrew,yumitsu/homebrew,mobileoverlord/homebrew-1,pcottle/homebrew,eighthave/homebrew,bitrise-io/homebrew,scpeters/homebrew,OJFord/homebrew,jedahan/homebrew,yazuuchi/homebrew,SuperNEMO-DBD/cadfaelbrew,jsjohnst/homebrew,utzig/homebrew,dutchcoders/homebrew,eagleflo/homebrew,dunn/homebrew,eagleflo/homebrew,marcwebbie/homebrew,AlexejK/homebrew,amjith/homebrew,kad/homebrew,jarrettmeyer/homebrew,influxdata/homebrew,davidcelis/homebrew,jmagnusson/homebrew,jedahan/homebrew,ge11232002/homebrew,heinzf/homebrew,dunn/homebrew,kad/homebrew,coldeasy/homebrew,bigbes/homebrew,muellermartin/homebrew,vigo/homebrew,cHoco/homebrew,saketkc/linuxbrew,Habbie/homebrew,tjschuck/homebrew,xyproto/homebrew,Homebrew/linuxbrew,ear/homebrew,Asuranceturix/homebrew,koraktor/homebrew,petere/homebrew,AlexejK/homebrew,joshua-rutherford/homebrew,lvicentesanchez/linuxbrew,vihangm/homebrew,tstack/homebrew,lrascao/homebrew,ablyler/homebrew,Angeldude/linuxbrew,razamatan/homebrew,ebouaziz/linuxbrew,dkotvan/homebrew,marcusandre/homebrew,danieroux/homebrew,mttrb/homebrew,colindean/homebrew,esamson/homebrew,jconley/homebrew,Linuxbrew/linuxbrew,Gasol/homebrew,lmontrieux/homebrew,martinklepsch/homebrew,Cutehacks/homebrew,sjackman/linuxbrew,mommel/homebrew,codeout/homebrew,bukzor/linuxbrew,osimola/homebrew,jconley/homebrew,decors/homebrew,ehamberg/homebrew,cscetbon/homebrew,max-horvath/homebrew,knpwrs/homebrew,heinzf/homebrew,georgschoelly/homebrew,dplarson/homebrew,manphiz/homebrew,gawbul/homebrew,brunchboy/homebrew,hakamadare/homebrew,kenips/homebrew,elgertam/homebrew,tsaeger/homebrew,ge11232002/homebrew,Asuranceturix/homebrew,cosmo0920/homebrew,Red54/homebrew,frickler01/homebrew,sakra/homebrew,martinklepsch/homebrew,jbeezley/homebrew,OJFord/homebrew