summaryrefslogtreecommitdiff
path: root/cmd.c
diff options
context:
space:
mode:
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 {