mirror of
https://github.com/SpotX-Official/SpotX.git
synced 2026-06-20 22:21:09 +10:00
added padding
This commit is contained in:
@@ -598,8 +598,8 @@ if (Test-Path -Path $hostsFilePath) {
|
|||||||
|
|
||||||
if ($hosts -match $regex) {
|
if ($hosts -match $regex) {
|
||||||
|
|
||||||
Write-Host ($lang).HostInfo
|
Write-Host ($lang).HostInfo`n
|
||||||
Write-Host ($lang).HostBak
|
Write-Host ($lang).HostBak`n
|
||||||
|
|
||||||
Copy-Item -Path $hostsFilePath -Destination $hostsBackupFilePath -ErrorAction SilentlyContinue
|
Copy-Item -Path $hostsFilePath -Destination $hostsBackupFilePath -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
@@ -612,9 +612,9 @@ if (Test-Path -Path $hostsFilePath) {
|
|||||||
[System.IO.File]::WriteAllLines($hostsFilePath, $hosts)
|
[System.IO.File]::WriteAllLines($hostsFilePath, $hosts)
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Host ($lang).HostError -ForegroundColor Red
|
Write-Host ($lang).HostError`n -ForegroundColor Red
|
||||||
$copyError = $Error[0]
|
$copyError = $Error[0]
|
||||||
Write-Host "Error: $($copyError.Exception.Message)" -ForegroundColor Red
|
Write-Host "Error: $($copyError.Exception.Message)`n" -ForegroundColor Red
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user