diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-12-11 21:20:18 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-12-11 21:20:18 +0100 |
commit | 2de8262c590c5de28a1761be531ccf8453cd8129 (patch) | |
tree | a9c732fbccc189515c8f52f32c3ba286d3279b57 /snooze.c | |
parent | f62a5e3b2e05e3aa0c8bb6b0bfec83c760778ef3 (diff) |
fix verbose output when no command is passed
Diffstat (limited to 'snooze.c')
-rw-r--r-- | snooze.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -392,16 +392,16 @@ main(int argc, char *argv[]) } } - // no command to run, the outside script can go on - if (argc == optind) - return 0; - if (vflag) { now = time(0); tm = localtime(&now); printf("Starting execution at %s\n", isotime(tm)); } + // no command to run, the outside script can go on + if (argc == optind) + return 0; + execvp(argv[optind], argv+optind); perror("execvp"); return 255; |