Browse Source

tools: only print out creating directory the first time.

Rusty Russell 15 years ago
parent
commit
5393341ce6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/tools.c

+ 2 - 2
tools/tools.c

@@ -204,9 +204,9 @@ char *temp_dir(const void *ctx)
 			err(1, "mkdir %s failed", tmpdir);
 		}
 		talloc_set_destructor(tmpdir, unlink_all);
+		if (tools_verbose)
+			printf("Created temporary directory %s\n", tmpdir);
 	}
-	if (tools_verbose)
-		printf("Created temporary directory %s\n", tmpdir);
 	return tmpdir;
 }