Closed wjdob closed 1 year ago
Thank you very much! I was planning to fix the script sooner or later but I see you went ahead ;) I've applied the changes manually (keeping your authorship), hope you don't mind.
Not a problem, glad to help :) One thing I noticed is that you have merged the .bat wrapper into a main directory. The installation script checks for the .bat wrapper inside the realme_ota folder, so you may want to move it there :)
Should be fixed now!
Line 312 and 313 in Install script - adjust the link to reflect your Github master. Currently it points to my fork :)
Updated that too, sorry! However, I just tried to run the script on my machine and the last step fails?
I suspect that line 307 may need to be wrapped to wait until Remove-Item completes. My computer has SSD, but I can imagine that on a HDD-based system the seek-time may cause too long of a delay when scanning sub-directories, so the system prompt for recursive removal may not show up instantly.
EDIT: Found more information about this. Seems like it is an ongoing bug with Remove-Item feature that runs asynchronously in Windows 10 versions before 20H2 : Powershell Remove-Item not waiting More info: PowerShell GitHub Windows 20H2 update seems to fix it.
Corrected PowerShell installation script by adding features of:
I adjusted README.MD and Install.ps1 to hyperlink to my fork, so feel free to change it back to master :)