еуые 4
This commit is contained in:
@@ -32,7 +32,7 @@ if !errorlevel! equ 0 (
|
||||
echo WARNING: Backup failed
|
||||
)
|
||||
|
||||
powershell -Command "$content = [System.IO.File]::ReadAllText('%FILE%'); $content = $content -replace 'http[s]?://[^\s\<\"]+', '%NEWURL%'; [System.IO.File]::WriteAllText('%FILE%', $content, [System.Text.Encoding]::UTF8); Write-Host 'SUCCESS: Replacement completed'"
|
||||
powershell -Command "$content = [System.IO.File]::ReadAllText('%FILE%'); $pattern = '<url>http[s]?://[^/<\"]+(/[^<\"]*)?</url>'; $content = $content -replace $pattern, '<url>%NEWURL%$1</url>'; [System.IO.File]::WriteAllText('%FILE%', $content, [System.Text.Encoding]::UTF8); Write-Host 'SUCCESS: Replacement completed'"
|
||||
|
||||
if errorlevel 1 (
|
||||
echo ERROR: PowerShell command failed
|
||||
|
||||
Reference in New Issue
Block a user