summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwgetpaste1
1 files changed, 1 insertions, 0 deletions
diff --git a/wgetpaste b/wgetpaste
index 3bd3915..dbea079 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -130,6 +130,7 @@ if [[ ! -r "${SOURCE}" ]]; then
fi
INPUT="$(escape "$(<${SOURCE})")"
+[[ -z "${INPUT}" ]] && die "No input read. Nothing to paste. Aborting."
NICK=$(escape "${NICK}")
LANGUAGE=$(escape "${LANGUAGE}")