mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-05-06 14:56:36 +08:00
Restrict the start and end when removing from the file list
This commit is contained in:
parent
3d2d6281b9
commit
960760f07c
@ -36,9 +36,9 @@ If ((Test-Path -Path "pri") -Eq $true -And (Test-Path -Path "xml") -Eq $true) {
|
|||||||
}
|
}
|
||||||
$ProjectXml.Save($AppxManifestFile)
|
$ProjectXml.Save($AppxManifestFile)
|
||||||
Remove-Item 'pri' -Recurse
|
Remove-Item 'pri' -Recurse
|
||||||
Set-Content -Path "filelist.txt" -Value (Get-Content -Path "filelist.txt" | Select-String -Pattern 'pri' -NotMatch)
|
Set-Content -Path "filelist.txt" -Value (Get-Content -Path "filelist.txt" | Select-String -Pattern '^pri$' -NotMatch)
|
||||||
Remove-Item 'xml' -Recurse
|
Remove-Item 'xml' -Recurse
|
||||||
Set-Content -Path "filelist.txt" -Value (Get-Content -Path "filelist.txt" | Select-String -Pattern 'xml' -NotMatch)
|
Set-Content -Path "filelist.txt" -Value (Get-Content -Path "filelist.txt" | Select-String -Pattern '^xml$' -NotMatch)
|
||||||
Remove-Item 'makepri.exe'
|
Remove-Item 'makepri.exe'
|
||||||
Set-Content -Path "filelist.txt" -Value (Get-Content -Path "filelist.txt" | Select-String -Pattern 'makepri.exe' -NotMatch)
|
Set-Content -Path "filelist.txt" -Value (Get-Content -Path "filelist.txt" | Select-String -Pattern 'makepri.exe' -NotMatch)
|
||||||
Remove-Item $PSCommandPath -Force
|
Remove-Item $PSCommandPath -Force
|
||||||
|
Loading…
x
Reference in New Issue
Block a user