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:
Adam Ierymenko 2014-10-03 13:41:52 -07:00
parent f853bc6a86
commit 6ab7b1b915
2 changed files with 8 additions and 1 deletions

View File

@ -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
View 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