From bf809f84b662f4e18a4f36b6b954135151f57fad Mon Sep 17 00:00:00 2001 From: Alexis Date: Thu, 31 Oct 2024 21:21:32 +1100 Subject: [PATCH] Add check that input source is an uncompressed text file. --- wgetpaste | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wgetpaste b/wgetpaste index f96ed08..69db841 100755 --- a/wgetpaste +++ b/wgetpaste @@ -344,6 +344,10 @@ requiredarg() { ((args++)) } +notplaintext() { + die "The input source: \"$1\" is not a plain text file." +} + notreadable() { die "The input source: \"$1\" is not readable. Please specify a readable input source." } @@ -534,7 +538,7 @@ x_cut() { ### output usage() { cat <