Skip to content

Commit a10bfa7

Browse files
committed
Call zeronet.py directly to if already downloaded to avoid problems with interactive commands
1 parent 557d02f commit a10bfa7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

zeronet.cmd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,11 @@
22
if "%1" == "" (
33
Python\python.exe -m zerobundle.run https://github.com/HelloZeroNet/ZeroNet start.py
44
) else (
5-
Python\python.exe -m zerobundle.run https://github.com/HelloZeroNet/ZeroNet zeronet.py %*
5+
if not exist ZeroNet (
6+
Python\python.exe -m zerobundle.run https://github.com/HelloZeroNet/ZeroNet zeronet.py %*
7+
) else (
8+
cd ZeroNet
9+
..\Python\python.exe zeronet.py %*
10+
cd ..
11+
)
612
)

0 commit comments

Comments
 (0)