-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix(current): Remove 'current' while it's not a junction #4687
Conversation
Just to confirm, this works in PS 5.1 and Win 7/8 also, right? There are 3 more places that use |
It existed in PS 5.1. Okay, I'll revert the change here (mklink) and change them all in another PR to make clear change. |
Some more places where we can use Line 1195 in 2644a5f
Line 1198 in 2644a5f
Line 26 in 2644a5f
Line 43 in 2644a5f
|
See https://github.com/ScoopInstaller/Scoop/pull/3502/files#diff-cfd4446b6fd477007943865889b4cdbf84e1c089d960b82cd3b57c6bf019fce3 for my previous rework of removing directory. I'm separating #3502 into single purpose PRs, and this should be next job soon. |
Hmm. I just wanted to get rid of COMSPEC entirely, because I faced a ton of issues I'm under the impression that anything COMSPEC does can be handled by PS 5.1 or later. |
Yes, of course, everything I'll do a PR and it should be tested to see if there are some disadvantages. |
Description
Junction is copied as native folder when we copy
apps
folder, and this may break scoop'sreset
,uninstall
,cleanup
actions. UseRemove-Item -Recure
could fix this bug.How Has This Been Tested?
Before:
After:
Checklist:
I have updated the tests accordingly.