From cd04dd735006e5e0f286b1124ab5fb9f91bac197 Mon Sep 17 00:00:00 2001 From: Bo Ørsted Andresen Date: Wed, 28 Feb 2007 11:22:08 +0000 Subject: Abort if there is nothing to paste. --- wgetpaste | 1 + 1 file changed, 1 insertion(+) 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}") -- cgit v1.2.3