summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xwgetpaste2
1 files changed, 1 insertions, 1 deletions
diff --git a/wgetpaste b/wgetpaste
index 4c0ca2a..755413e 100755
--- a/wgetpaste
+++ b/wgetpaste
@@ -544,7 +544,7 @@ RECIPIENT="$(getrecipient RAW)"
# paste it
WGET_ARGS="--tries=5 --timeout=60 ${WGET_ARGS}"
-if geturl needstdout || [[ ${DEBUG} ]] || [[ ! -w /dev/null ]]; then
+if geturl needstdout || [[ ${DEBUG} || ! -w /dev/null ]]; then
OUTPUT="$(wget -O - ${WGET_ARGS} ${RECIPIENT} 2>&1)"
else
OUTPUT="$(wget -O /dev/null ${WGET_ARGS} ${RECIPIENT} 2>&1)"