fix(current): Remove 'current' while it's not a junction#4687
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. |
|
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
appsfolder, and this may break scoop'sreset,uninstall,cleanupactions. UseRemove-Item -Recurecould fix this bug.How Has This Been Tested?
Before:
After:
Checklist:
I have updated the tests accordingly.