diff options
author | Bo Ørsted Andresen <bo.andresen@zlin.dk> | 2007-02-28 11:22:08 +0000 |
---|---|---|
committer | Bo Ørsted Andresen <bo.andresen@zlin.dk> | 2007-02-28 11:22:08 +0000 |
commit | cd04dd735006e5e0f286b1124ab5fb9f91bac197 (patch) | |
tree | 0fa166796ca8fe1977c0080fb5093c1c3d38af75 | |
parent | 400af8dd65d171682a9b88f19e4d3ed97b3473f2 (diff) | |
download | wgetpaste-cd04dd735006e5e0f286b1124ab5fb9f91bac197.tar.gz |
Abort if there is nothing to paste.
-rwxr-xr-x | wgetpaste | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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}") |