Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 4915e88

Browse files
committed
Fix infinite loop in compiler
1 parent d9c3fbd commit 4915e88

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

compiler.nim

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ proc cleanWorkingDir() =
2929
moveDir(absolutePath("NullRAT" / "upx"), dirrr / "NullRAT2" / "upx")
3030
# check existing variables
3131
if fileExists(absolutePath("NullRAT" / "Variables.py")):
32-
var inp: char
33-
while inp != 'Y' or inp != 'y' or inp != 'N' or inp != 'n':
34-
echo "Existing Variables file found! Preserve? (y/N)"
35-
inp = getch()
36-
if inp == 'Y' or inp == 'y':
37-
moveFile(absolutePath("NullRAT" / "Variables.py"), dirrr / "NullRAT2" / "Variables.py")
32+
var inp: char = getch()
33+
echo "Existing Variables file found! Preserve? (y/N)"
34+
inp = getch()
35+
if inp == 'Y' or inp == 'y':
36+
moveFile(absolutePath("NullRAT" / "Variables.py"), dirrr / "NullRAT2" / "Variables.py")
3837
removeDir("NullRAT")
3938
moveDir(dirrr / "NullRAT2", dirrr / "NullRAT")
4039
removeFile("AIO.bat")

0 commit comments

Comments
 (0)