shilangyu / scoop-search

Fast `scoop search` drop-in replacement 🚀
MIT License
277 stars 10 forks source link

fix: check if `root_path` exists #32

Closed v1nh1shungry closed 1 year ago

v1nh1shungry commented 1 year ago

Reference: https://github.com/ScoopInstaller/Install/blob/f1cf244456a4201a4ee3d1ad8cea2ac96e301198/install.ps1#L442

Users who installed scoop in the default directory don't have SCOOP specified and root_path either.

This may fix https://github.com/shilangyu/scoop-search/issues/31, but I'm not sure until there is a positive answer to the question from https://github.com/shilangyu/scoop-search/pull/30#issuecomment-1403775672.