Closed jonz94 closed 1 year ago
Reopen as #202
Because "Pull Requests / Pull Request Validator (pull_request)" CI on this PR disappeared...
Ah... I totally forget about the /verify
command...
Just leave a comment with /verify
, like https://github.com/matthewjberger/scoop-nerd-fonts/pull/204#issuecomment-1289081304
Then, it will trigger the "Pull Requests / Pull Request Validator (pull_request)" CI for us.
scoop install -g <app>
, scoop will automatically check if current session have admin rights or not.I also change the scripts when the admin rights check fails.
Before this PR, font will still be installed, and mark as "Install failed".![before-refactor](https://user-images.githubusercontent.com/16042676/197366386-8e22112e-2932-4c97-bc11-5473082856f6.png)
After this PR, font will be uninstalled immediately, and then print out some details about what just happened to the user.![after-refactor](https://user-images.githubusercontent.com/16042676/197366390-b9e3fd7b-9854-483a-9d6f-e05df811fb31.png)