summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Ørsted Andresen <bo.andresen@zlin.dk>2007-02-28 11:22:08 +0000
committerBo Ørsted Andresen <bo.andresen@zlin.dk>2007-02-28 11:22:08 +0000
commitcd04dd735006e5e0f286b1124ab5fb9f91bac197 (patch)
tree0fa166796ca8fe1977c0080fb5093c1c3d38af75
parent400af8dd65d171682a9b88f19e4d3ed97b3473f2 (diff)
downloadwgetpaste-cd04dd735006e5e0f286b1124ab5fb9f91bac197.tar.gz
Abort if there is nothing to paste.
-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}")