diff --git a/config/tweaks.json b/config/tweaks.json index 37d9dab8..2b130169 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -1987,9 +1987,9 @@ "InvokeScript": [ " $hostsUrl = \"https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts\" - $hosts = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\" + $hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" - Copy-Item $hosts \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\\$hosts.bak\" + Move-Item $hosts \"$hosts.bak\" Invoke-WebRequest $hostsUrl -OutFile $hosts ipconfig /flushdns @@ -1998,10 +1998,10 @@ ], "UndoScript": [ " - $hosts = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\" - $backup = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\\$hosts.bak\" + $hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" Remove-Item $hosts + Move-Item \"$hosts.bak\" $hosts ipconfig /flushdns Write-Host \"Removed Adobe url block list from host file\"