aboutsummaryrefslogtreecommitdiffstats
path: root/hypo
diff options
context:
space:
mode:
Diffstat (limited to 'hypo')
-rwxr-xr-xhypo4
1 files changed, 2 insertions, 2 deletions
diff --git a/hypo b/hypo
index 14df732..40a9e43 100755
--- a/hypo
+++ b/hypo
@@ -38,14 +38,14 @@ function help_send
function cmd_send
{
+ local sendfile="$1"
+
if [[ ! -t 0 ]]; then
sendfile="$(mktemp --suffix ${1-.txt})"
cat - > "$sendfile"
elif [[ -z "$1" ]]; then
cmd_help "send"
exit 1
- else
- sendfile="$1"
fi
curl --upload-file "$sendfile" "$URL/"