diff options
author | sinanmohd <sinan@sinanmohd.com> | 2023-12-30 16:11:59 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2023-12-30 16:17:03 +0530 |
commit | dc1f4733c0c21c897dbcc430787d33dc0e6c6af3 (patch) | |
tree | 1c2788ce366c28d2659ffab81b8f37aed7b8437b | |
parent | 759b7d8b83132085ce6c832fbe2b4a162ca2cd72 (diff) |
pass.c: if no command is given assume cat
-rw-r--r-- | pass.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -123,10 +123,12 @@ int main(int argc, char *argv[]) err_die(1, "invalid usage, try pass help"); r = add(argv[1]); + } else { + r = cat(*argv); } if (r) - err_die(r, "Command '%s' failed", *argv); + err_die(r, "Command failed"); return 0; } |