Skip to content

Commit

Permalink
only handle pipe when no arg specified
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
  • Loading branch information
Keruspe committed Jul 8, 2014
1 parent 68f6714 commit 7ef9ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpaste/gpaste.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ main (gint argc, gchar *argv[])
if (!client)
failure_exit (error);

if (!isatty (fileno (stdin)))
if (!isatty (fileno (stdin)) && argc == 1)
{
/* We are being piped */
G_PASTE_CLEANUP_STRING_FREE GString *data = g_string_new ("");
Expand Down

0 comments on commit 7ef9ed2

Please sign in to comment.