aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pass.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pass.c b/pass.c
index 5425245..e68a262 100644
--- a/pass.c
+++ b/pass.c
@@ -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;
}