Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] If 'scoop update' failed, scoop itself will be removed. #4005

Closed
GalaxySnail opened this issue May 31, 2020 · 1 comment · Fixed by #4960 or #4982
Closed

[BUG] If 'scoop update' failed, scoop itself will be removed. #4005

GalaxySnail opened this issue May 31, 2020 · 1 comment · Fixed by #4960 or #4982

Comments

@GalaxySnail
Copy link

Description

Scoop is installed with 'bin/install.ps1' ('~/scoop/apps/scoop/current/.git' doesn't exist), if I run 'scoop update' and use 'Ctrl + C' to interrupt it, '~/scoop/apps/scoop/current' will be removed silently.

Solution

There is a bug in 'libexec/scoop-update.ps1', when '$currentdir/.git' doesn't exist and 'git clone' fails, the currentdir will always be removed. I fixed it in my pull request.

@rashil2000
Copy link
Member

Related #3050

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants