diff options
| -rw-r--r-- | main.cpp | 2 | ||||
| -rwxr-xr-x | testnet/clean-local-testnet.sh | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -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]); diff --git a/testnet/clean-local-testnet.sh b/testnet/clean-local-testnet.sh new file mode 100755 index 00000000..1d6b7f0d --- /dev/null +++ b/testnet/clean-local-testnet.sh @@ -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 |
