Closed jonz94 closed 1 year ago
scoop install -g <app>
I also change the scripts when the admin rights check fails.
Before this PR, font will still be installed, and mark as "Install failed".
After this PR, font will be uninstalled immediately, and then print out some details about what just happened to the user.
/verify
Your changes do not pass checks.
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)