Skip to content

Commit 61a6265

Browse files
authored
Fix WPFTweaksBlockAdobeNet (#4042)
* Fix WPFTweaksBlockAdobeNet * Update tweaks.json
1 parent 5582c3c commit 61a6265

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config/tweaks.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,9 +1987,9 @@
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

@@ -1998,10 +1998,10 @@
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\"

0 commit comments

Comments
 (0)