mirror of https://gitee.com/bigwinds/arangodb
exit arango-dfdb if there are no collections
This commit is contained in:
parent
ee73fce4dc
commit
494586af2b
|
@ -307,6 +307,11 @@ function main (argv) {
|
||||||
printf("%s\n", "/___,' \\__,_|\\__\\__,_|_| |_|_|\\___| /___,'\\_____/\\____/ ");
|
printf("%s\n", "/___,' \\__,_|\\__\\__,_|_| |_|_|\\___| /___,'\\_____/\\____/ ");
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
if (collections.length == 0) {
|
||||||
|
printf("No collections available. Exiting\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
printf("Available collections:\n");
|
printf("Available collections:\n");
|
||||||
|
|
||||||
for (i = 0; i < collections.length; ++i) {
|
for (i = 0; i < collections.length; ++i) {
|
||||||
|
|
Loading…
Reference in New Issue