Command 'scoop update' delete scoop if download fail.  (#1120)
Command 'scoop update' delete scoop if download fail.  (#1120)

* try catch on update

fixes #1118

* deleting the right dir

* added -ea stop to git command

* added try catch to bucket update

* removing space

* Removing -ea from git command, since it isn´t a scriptlet

* When git clone fail, it does not create de $newdir, so I changed the code
to check for this path.

When the git pull fail, nothing happens, so It doesnt need any changes

Also, git error could not be catch in powersheel exception

* removing blank lines

vidarkongsli/scoop,bpollack/scoop,rmyorston/scoop,coonce/scoop,nikolasd/scoop,rodericktech/scoop,nueko/scoop,r15ch13/scoop,toxeus/scoop,kodybrown/scoop,reelsense/scoop,yunspace/scoop,vinaynambiar/lukesampson-,Congee/scoop,berwyn/scoop,lukesampson/scoop,Cyianor/scoop,rasa/scoop