File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 19871987 "InvokeScript" : [
19881988 "
19891989 $hostsUrl = \"https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts\"
1990- $hosts = \"$env :SystemRoot\\System32\\drivers\\etc\\hosts\"
1990+ $hosts = \"$Env :SystemRoot\\System32\\drivers\\etc\\hosts\"
19911991
1992- Copy -Item $hosts \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\\ $hosts.bak\"
1992+ Move -Item $hosts \"$hosts.bak\"
19931993 Invoke-WebRequest $hostsUrl -OutFile $hosts
19941994 ipconfig /flushdns
19951995
19981998 ],
19991999 "UndoScript" : [
20002000 "
2001- $hosts = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\"
2002- $backup = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\\$hosts.bak\"
2001+ $hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\"
20032002
20042003 Remove-Item $hosts
2004+ Move-Item \"$hosts.bak\" $hosts
20052005 ipconfig /flushdns
20062006
20072007 Write-Host \"Removed Adobe url block list from host file\"
You can’t perform that action at this time.
0 commit comments