mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 13:07:55 +00:00
Add local-testnet clean script, and make a really ugly hacky fix in main.c for the -q option. (All that personality stuff needs to be rewritten. Yuck.)
This commit is contained in:
parent
f853bc6a86
commit
6ab7b1b915
2
main.cpp
2
main.cpp
@ -146,7 +146,7 @@ static int main(const char *homeDir,int argc,char **argv)
|
||||
printHelp(stdout,argv[0]);
|
||||
return 1;
|
||||
}
|
||||
} else {
|
||||
} else if ((!homeDir)||(strcmp(homeDir,argv[i]))) {
|
||||
if (query.length())
|
||||
query.push_back(' ');
|
||||
query.append(argv[i]);
|
||||
|
7
testnet/clean-local-testnet.sh
Executable file
7
testnet/clean-local-testnet.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
export PATH=/bin:/usr/bin:/usr/local/bin
|
||||
|
||||
rm -rfv local-testnet/n????
|
||||
find local-testnet -type f ! -name 'identity.*' -print0 | xargs -0 rm -fv
|
||||
rm -rfv local-testnet/sn????/networks.d
|
Loading…
Reference in New Issue
Block a user