Skip to content

Commit dfbe9f3

Browse files
committed
Check if rules.txt exists before merging hosts
1 parent 0e9c9a5 commit dfbe9f3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

teleme7ry.bat

+7
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,13 @@ color 07
146146
echo APPLYING HOSTS RULES...
147147
echo ===========================================
148148
echo.
149+
if not exist "%~dp0\rules.txt" (
150+
color 4f
151+
echo The rules file could not be found.
152+
echo Make sure to extract/download it alongside Teleme7ry.
153+
timeout /t -1
154+
goto home
155+
)
149156
echo Merging Teleme7ry rules with system hosts...
150157
if not exist "%~dp0\working\" mkdir %~dp0\working
151158
type %windir%\System32\drivers\etc\hosts %~dp0\rules.txt > %~dp0\working\merged.txt

0 commit comments

Comments
 (0)