mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
* archival/gzip.c (gzip_main): Display usage if given multiple files.
This commit is contained in:
parent
273af73317
commit
592a3e63ee
@ -1246,6 +1246,9 @@ int gzip_main(int argc, char **argv)
|
||||
tostdout = 1;
|
||||
}
|
||||
|
||||
if (argc - optind > 1)
|
||||
show_usage ();
|
||||
|
||||
if (isatty(fileno(stdout)) && tostdout==1 && force==0)
|
||||
error_msg_and_die( "compressed data not written to terminal. Use -f to force it.");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user