summaryrefslogtreecommitdiff
path: root/cmd.c
diff options
context:
space:
mode:
authorThomas Albers Raviola <thomas@thomaslabs.org>2023-08-28 22:08:46 +0200
committerThomas Albers Raviola <thomas@thomaslabs.org>2023-08-28 22:08:46 +0200
commit9c826f6f1a652edce0c8bb15b0cf94e259296e53 (patch)
tree6c7063856d6ac165dd4329694a54c79813cc3afb /cmd.c
parent3199529ab3ed39737454f9f0b4e91915955c38b2 (diff)
Add delay between attempts
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd.c b/cmd.c
index a460808..29bc8c9 100644
--- a/cmd.c
+++ b/cmd.c
@@ -195,7 +195,11 @@ cmd_write(int fd, const struct command *cmd, int argc, char **args)
}
}
- puts("\nDone!");
+ putchar('\n');
+
+ if (!err)
+ puts("Done!");
+
fclose(fp);
} else if (param.human_readable) {
do {